WordPress.org

Make WordPress Core

Ticket #9422: 7422-deleted-fix.diff

File 7422-deleted-fix.diff, 671 bytes (added by Denis-de-Bernardy, 9 years ago)

revert deleted_post to its initial location

  • Users/denis/Sites/wp/wp-includes/post.php

     
    11591159        foreach ( $revision_ids as $revision_id )
    11601160                wp_delete_post_revision( $revision_id );
    11611161
    1162         do_action('deleted_post', $postid);
    1163 
    11641162        // Point all attachments to this post up one level
    11651163        $wpdb->update( $wpdb->posts, $parent_data, $parent_where + array( 'post_type' => 'attachment' ) );
    11661164
     
    11811179                clean_post_cache($postid);
    11821180        }
    11831181
     1182        do_action('deleted_post', $postid);
     1183
    11841184        return $post;
    11851185}
    11861186