From eaac63e0d027efd421eb2cbb43407a8fdda0632a Mon Sep 17 00:00:00 2001 From: rob1n Date: Sat, 31 Mar 2007 21:41:08 +0000 Subject: [PATCH] Add exit hook to wp_delete_post(). Props kevinB. fixes #4055 git-svn-id: http://svn.automattic.com/wordpress/trunk@5158 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/post.php b/wp-includes/post.php index 14544ced68..8edae737e4 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -443,6 +443,8 @@ function wp_delete_post($postid = 0) { $wp_rewrite->flush_rules(); } + do_action('deleted_post', $postid); + return $post; }