Make WordPress Core


Ignore:
Timestamp:
04/10/2012 04:09:44 PM (15 years ago)
Author:
ryan
Message:

Pass post_type to clean_post_cache() instead of attempting to fetch a post object since the post may have been deleted.

Props leewillis77
see #19690

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-posts-list-table.php

    r20195 r20423  
    361361                                        $page->post_parent = 0;
    362362                                        $wpdb->update( $wpdb->posts, array( 'post_parent' => 0 ), array( 'ID' => $page->ID ) );
    363                                         clean_page_cache( $page->ID );
     363                                        clean_post_cache( $page->ID, $page->post_type );
    364364                                }
    365365
Note: See TracChangeset for help on using the changeset viewer.