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:
parent
3b74215727
commit
f763c751d8
@ -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
Block a user