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;