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
This commit is contained in:
parent
b9ddc875bf
commit
eaac63e0d0
|
@ -443,6 +443,8 @@ function wp_delete_post($postid = 0) {
|
|||
$wp_rewrite->flush_rules();
|
||||
}
|
||||
|
||||
do_action('deleted_post', $postid);
|
||||
|
||||
return $post;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue