Ticket #9422: 7422-deleted-fix.diff
File 7422-deleted-fix.diff, 671 bytes (added by , 15 years ago) |
---|
-
Users/denis/Sites/wp/wp-includes/post.php
1159 1159 foreach ( $revision_ids as $revision_id ) 1160 1160 wp_delete_post_revision( $revision_id ); 1161 1161 1162 do_action('deleted_post', $postid);1163 1164 1162 // Point all attachments to this post up one level 1165 1163 $wpdb->update( $wpdb->posts, $parent_data, $parent_where + array( 'post_type' => 'attachment' ) ); 1166 1164 … … 1181 1179 clean_post_cache($postid); 1182 1180 } 1183 1181 1182 do_action('deleted_post', $postid); 1183 1184 1184 return $post; 1185 1185 } 1186 1186