WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/11/15 20:45:17 (2 years ago)
Author:
johnbillion
Message:

Introduce a new algorithm for displaying a hierarchical list of post objects in the WP_Posts_List_Table. This reduces processing time, reduces database queries, and substantially reduces memory use on sites with a high number of Pages.

Props nofearinc, rodrigosprimo, nacin, johnbillion.
Fixes #15459

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/post.php

    r31681 r31730  
    10401040        $query['posts_per_page'] = -1; 
    10411041        $query['posts_per_archive_page'] = -1; 
     1042        $query['fields'] = 'id=>parent'; 
    10421043    } 
    10431044 
Note: See TracChangeset for help on using the changeset viewer.