Rename duplicate delete_post and deleted_post actions to before_delete_post and after_delete_post. Props scribu. fixes #13731
git-svn-id: http://svn.automattic.com/wordpress/trunk@18012 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e4157ae4cd
commit
c1bb49bb55
|
@ -1967,7 +1967,7 @@ function wp_delete_post( $postid = 0, $force_delete = false ) {
|
|||
if ( $post->post_type == 'attachment' )
|
||||
return wp_delete_attachment( $postid, $force_delete );
|
||||
|
||||
do_action('delete_post', $postid);
|
||||
do_action('before_delete_post', $postid);
|
||||
|
||||
delete_post_meta($postid,'_wp_trash_meta_status');
|
||||
delete_post_meta($postid,'_wp_trash_meta_time');
|
||||
|
@ -2039,7 +2039,7 @@ function wp_delete_post( $postid = 0, $force_delete = false ) {
|
|||
|
||||
wp_clear_scheduled_hook('publish_future_post', array( $postid ) );
|
||||
|
||||
do_action('deleted_post', $postid);
|
||||
do_action('after_delete_post', $postid);
|
||||
|
||||
return $post;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue