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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user