Make WordPress Core

Changeset 11651


Ignore:
Timestamp:
06/26/2009 02:35:40 PM (15 years ago)
Author:
azaozz
Message:

Fix cache in WP_Widget_Recent_Posts, fixes #10251 for trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/default-widgets.php

    r11471 r11651  
    527527            $cache = array();
    528528
    529         if ( isset($cache[$args['widget_id']]) )
    530             return $cache[$args['widget_id']];
     529        if ( isset($cache[$args['widget_id']]) ) {
     530            echo $cache[$args['widget_id']];
     531            return;
     532        }
    531533
    532534        ob_start();
Note: See TracChangeset for help on using the changeset viewer.