mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-20 19:56:49 +01:00
Fix cache in WP_Widget_Recent_Posts, fixes #10251 for 2.8
git-svn-id: http://svn.automattic.com/wordpress/branches/2.8@11650 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
385af418f4
commit
6e18c2cdcb
|
|
@ -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