Make WordPress Core

Changeset 5960


Ignore:
Timestamp:
08/28/2007 08:12:43 PM (17 years ago)
Author:
westi
Message:

Ensure we flush the recent entries widget cache after a post has been deleted. Fixes #4825 props donncha

File:
1 edited

Legend:

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

    r5876 r5960  
    838838
    839839add_action('save_post', 'wp_flush_widget_recent_entries');
    840 add_action('post_deleted', 'wp_flush_widget_recent_entries');
     840add_action('deleted_post', 'wp_flush_widget_recent_entries');
    841841
    842842function wp_widget_recent_entries_control() {
Note: See TracChangeset for help on using the changeset viewer.