Make WordPress Core


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

Fix cache in WP_Widget_Recent_Posts, fixes #10251 for 2.8

File:
1 edited

Legend:

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

    r11471 r11650  
    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.