Clear future publishing hook on post deletion. Fixes #5364 props develish and Denis-de-Bernardy.
git-svn-id: https://develop.svn.wordpress.org/trunk@11284 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9a1ebaa73b
commit
b52feaaa0f
@ -1195,6 +1195,8 @@ function wp_delete_post($postid = 0) {
|
||||
clean_post_cache($postid);
|
||||
}
|
||||
|
||||
wp_clear_scheduled_hook('publish_future_post', $postid);
|
||||
|
||||
do_action('deleted_post', $postid);
|
||||
|
||||
return $post;
|
||||
|
Loading…
Reference in New Issue
Block a user