Fix cache in WP_Widget_Recent_Posts, fixes #10251 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@11651 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7dcd5e4673
commit
329fd81b20
@ -526,8 +526,10 @@ class WP_Widget_Recent_Posts extends WP_Widget {
|
||||
if ( !is_array($cache) )
|
||||
$cache = array();
|
||||
|
||||
if ( isset($cache[$args['widget_id']]) )
|
||||
return $cache[$args['widget_id']];
|
||||
if ( isset($cache[$args['widget_id']]) ) {
|
||||
echo $cache[$args['widget_id']];
|
||||
return;
|
||||
}
|
||||
|
||||
ob_start();
|
||||
extract($args);
|
||||
|
Loading…
Reference in New Issue
Block a user