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

git-svn-id: https://develop.svn.wordpress.org/trunk@5960 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2007-08-28 20:12:43 +00:00
parent 3b74215727
commit f763c751d8
1 changed files with 1 additions and 1 deletions

View File

@ -837,7 +837,7 @@ function wp_flush_widget_recent_entries() {
}
add_action('save_post', 'wp_flush_widget_recent_entries');
add_action('post_deleted', 'wp_flush_widget_recent_entries');
add_action('deleted_post', 'wp_flush_widget_recent_entries');
function wp_widget_recent_entries_control() {
$options = $newoptions = get_option('widget_recent_entries');