Move deleted_post back. Props Denis-de-Bernardy . see #9422

git-svn-id: http://svn.automattic.com/wordpress/trunk@10858 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2009-04-01 16:10:14 +00:00
parent e1feb9dc86
commit 7d37926ebc
2 changed files with 4 additions and 4 deletions

View File

@@ -1159,8 +1159,6 @@ function wp_delete_post($postid = 0) {
foreach ( $revision_ids as $revision_id )
wp_delete_post_revision( $revision_id );
do_action('deleted_post', $postid);
// Point all attachments to this post up one level
$wpdb->update( $wpdb->posts, $parent_data, $parent_where + array( 'post_type' => 'attachment' ) );
@@ -1181,6 +1179,8 @@ function wp_delete_post($postid = 0) {
clean_post_cache($postid);
}
do_action('deleted_post', $postid);
return $post;
}