";
$output = ob_get_contents();
ob_end_clean();
- echo $output;
$cache[ $key ] = $output;
wp_cache_set( 'get_calendar', $cache, 'calendar' );
+
+ if ( $echo )
+ echo $calendar_output;
+ else
+ return $calendar_output;
+
}
/**
Index: wp-includes/widgets.php
===================================================================
--- wp-includes/widgets.php (revision 12390)
+++ wp-includes/widgets.php (working copy)
@@ -519,12 +519,6 @@
* name - The name of the sidebar, which presumably the title which will be
* displayed.
* id - The unique identifier by which the sidebar will be called by.
- * before_widget - The content that will prepended to the widgets when they are
- * displayed.
- * after_widget - The content that will be appended to the widgets when they are
- * displayed.
- * before_title - The content that will be prepended to the title when displayed.
- * after_title - the content that will be appended to the title when displayed.
*
* Content is assumed to be HTML and should be formatted as such, but
* doesn't have to be.
@@ -548,11 +542,7 @@
$defaults = array(
'name' => sprintf(__('Sidebar %d'), $i ),
'id' => "sidebar-$i",
- 'description' => '',
- 'before_widget' => '