Clear future publishing hook on post deletion. Fixes #5364 props develish and Denis-de-Bernardy.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11284 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6f81ec436c
commit
c2efcbf94d
|
@ -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