From c1bb49bb55c2504bc01b7f0ad52a7e3a4b643a28 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 23 May 2011 23:43:14 +0000 Subject: [PATCH] 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 --- wp-includes/post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index efec91be81..81c4f2de9b 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -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; }