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

git-svn-id: http://svn.automattic.com/wordpress/trunk@5960 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2007-08-28 20:12:43 +00:00
parent 9b742b7959
commit 67d21286a8

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');