Ticket #6694: 6694.diff
| File 6694.diff, 1.0 KB (added by , 18 years ago) |
|---|
-
wp-includes/widgets.php
858 858 } 859 859 860 860 function wp_widget_recent_entries($args) { 861 if ( $output = wp_cache_get('widget_recent_entries', 'widget') ) 862 return print($output); 861 if ( '%BEG_OF_TITLE%' != $args['before_title'] ) { 862 if ( $output = wp_cache_get('widget_recent_entries', 'widget') ) 863 return print($output); 864 ob_start(); 865 } 863 866 864 ob_start();865 867 extract($args); 866 868 $options = get_option('widget_recent_entries'); 867 869 $title = empty($options['title']) ? __('Recent Posts') : $options['title']; … … 886 888 <?php 887 889 wp_reset_query(); // Restore global post data stomped by the_post(). 888 890 endif; 889 wp_cache_add('widget_recent_entries', ob_get_flush(), 'widget'); 891 892 if ( '%BEG_OF_TITLE%' != $args['before_title'] ) 893 wp_cache_add('widget_recent_entries', ob_get_flush(), 'widget'); 890 894 } 891 895 892 896 function wp_flush_widget_recent_entries() {
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)