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:
parent
9b742b7959
commit
67d21286a8
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue