[wp-trac] [WordPress Trac] #34982: New algorithm for displaying a hierarchical list of post objects in the WP_Posts_List_Table is incomplete
WordPress Trac
noreply at wordpress.org
Thu Dec 10 16:57:59 UTC 2015
#34982: New algorithm for displaying a hierarchical list of post objects in the
WP_Posts_List_Table is incomplete
-------------------------------+-----------------------------
Reporter: rodrigosprimo | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 4.2
Severity: normal | Keywords:
Focuses: performance |
-------------------------------+-----------------------------
It seems to me that the commit [31730] made to fix #15459 mistakenly left
out a small but important part of the proposed patch
(https://core.trac.wordpress.org/attachment/ticket/15459/15459.5.diff).
In #15459 a new algorithm was proposed to retrieve from the database only
the IDs of the posts and its parents to build the hierarchical list of
post objects in the WP_Posts_List_Table. Thus reducing processing time and
substantially reducing memory usage on sites with a high number of
hierarchical posts.
But the commit didn't included a change in the file src/wp-includes/class-
wp.php to add 'fields' to the list of private query vars (see attached
patch). Without this change the code is still getting all the data related
to all the posts to build the post list table instead of just getting the
IDs of the posts and its parents.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34982>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list