Rename duplicate delete_post and deleted_post actions to before_delete_post and after_delete_post. Props scribu. fixes #13731

git-svn-id: https://develop.svn.wordpress.org/trunk@18012 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2011-05-23 23:43:14 +00:00
parent 413723f08e
commit 48fd7708b1
1 changed files with 2 additions and 2 deletions

View File

@ -1967,7 +1967,7 @@ function wp_delete_post( $postid = 0, $force_delete = false ) {
if ( $post->post_type == 'attachment' ) if ( $post->post_type == 'attachment' )
return wp_delete_attachment( $postid, $force_delete ); 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_status');
delete_post_meta($postid,'_wp_trash_meta_time'); 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 ) ); wp_clear_scheduled_hook('publish_future_post', array( $postid ) );
do_action('deleted_post', $postid); do_action('after_delete_post', $postid);
return $post; return $post;
} }