From b52feaaa0fab1da276b7a209ee18d9257fff39cc Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Mon, 11 May 2009 22:17:13 +0000 Subject: [PATCH] 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 --- wp-includes/post.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/post.php b/wp-includes/post.php index 897fb0a455..0680f941c2 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -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;