From a8f99a3d72d861d84ad1c637980f849042e6f1f0 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Thu, 15 Sep 2011 10:43:22 +0000 Subject: [PATCH] Remove the accidental commit of the cache avoiding test code in [18677] props vnsavage git-svn-id: https://develop.svn.wordpress.org/trunk@18679 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/default-widgets.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/default-widgets.php b/wp-includes/default-widgets.php index 38d43716e3..c36fc6453a 100644 --- a/wp-includes/default-widgets.php +++ b/wp-includes/default-widgets.php @@ -525,10 +525,10 @@ class WP_Widget_Recent_Posts extends WP_Widget { if ( !is_array($cache) ) $cache = array(); - if ( ! isset( $args['widget_id'] ) ) + if ( ! isset( $args['widget_id'] ) ) $args['widget_id'] = $this->id; - if ( false && isset( $cache[ $args['widget_id'] ] ) ) { + if ( isset( $cache[ $args['widget_id'] ] ) ) { echo $cache[ $args['widget_id'] ]; return; } @@ -634,7 +634,7 @@ class WP_Widget_Recent_Comments extends WP_Widget { if ( ! isset( $args['widget_id'] ) ) $args['widget_id'] = $this->id; - if ( false && isset( $cache[ $args['widget_id'] ] ) ) { + if ( isset( $cache[ $args['widget_id'] ] ) ) { echo $cache[ $args['widget_id'] ]; return; }