From f0c73873c455a74eeedb83876af8b82b3b137ab3 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 17 Apr 2008 20:42:47 +0000 Subject: [PATCH] don't cache during title extraction. Props mdawaffe. fixes #6694 for trunk git-svn-id: https://develop.svn.wordpress.org/trunk@7728 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/widgets.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/wp-includes/widgets.php b/wp-includes/widgets.php index 7ed15e2ac2..421ada4c4a 100644 --- a/wp-includes/widgets.php +++ b/wp-includes/widgets.php @@ -864,10 +864,12 @@ function wp_widget_categories_upgrade() { } function wp_widget_recent_entries($args) { - if ( $output = wp_cache_get('widget_recent_entries', 'widget') ) - return print($output); + if ( '%BEG_OF_TITLE%' != $args['before_title'] ) { + if ( $output = wp_cache_get('widget_recent_entries', 'widget') ) + return print($output); + ob_start(); + } - ob_start(); extract($args); $options = get_option('widget_recent_entries'); $title = empty($options['title']) ? __('Recent Posts') : $options['title']; @@ -892,7 +894,9 @@ function wp_widget_recent_entries($args) {