Make WordPress Core


Ignore:
Timestamp:
05/06/2010 08:40:10 PM (14 years ago)
Author:
nacin
Message:

Use wp_cache_set instead of wp_cache_add in recent posts and archives widgets. props Denis-de-Bernardy, fixes #11580.

File:
1 edited

Legend:

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

    r14483 r14486  
    559559
    560560        $cache[$args['widget_id']] = ob_get_flush();
    561         wp_cache_add('widget_recent_posts', $cache, 'widget');
     561        wp_cache_set('widget_recent_posts', $cache, 'widget');
    562562    }
    563563
Note: See TracChangeset for help on using the changeset viewer.