Hi,
I use default widget on my WPMU and my default widget code is:
<?php
function default_widgets($blog_id) {
add_option( 'widget_categories',
array( 'title' => 'My Categories' ));
update_blog_option($blog_id, "sidebars_widgets",
array("sidebar-1" => array("pages","categories", "schreikasten"),
"sidebar-2" => array("wp_sidebarlogin", "calendar", "archives", "recent-posts")
));
}
add_action('wpmu_new_blog', 'default_widgets');
?>
And my default "schreikasten" plugin not works properly as default, so this plugin widget not has default $before_widget $after_widget tags and during new blog setup i got widget without title and a warning at the end. I have created fresh auto generated site without any changes after creation blog: http://vsayt.saytda.co.tv
The widgets default code:
function sk_widget($args) {
extract($args);
$options = get_option('widget_sk');
$title = $options['title'];
echo $before_widget . $before_title . $title . $after_title;
sk_shoutbox();
echo $after_widget;
}
This problem happen with most of plugins while i used them with default widget plugin.
Please help, how to make default widget title?