[wp-trac] [WordPress Trac] #62801: Improve performance of X-WP-TotalPages queries

WordPress Trac noreply at wordpress.org
Mon Oct 20 19:42:04 UTC 2025


#62801: Improve performance of X-WP-TotalPages queries
----------------------------------------------+---------------------------
 Reporter:  spacedmonkey                      |       Owner:  spacedmonkey
     Type:  enhancement                       |      Status:  assigned
 Priority:  normal                            |   Milestone:  6.9
Component:  REST API                          |     Version:  3.7
 Severity:  normal                            |  Resolution:
 Keywords:  has-patch early needs-unit-tests  |     Focuses:  performance
----------------------------------------------+---------------------------

Comment (by spacedmonkey):

 The only test I can think make sense, might be use to filter like
 `parse_query` and get `$wp_query->query_vars` and check the query args.
 But this change not only changes parameters to WP_Query, but also
 WP_User_Query and WP_Comment_Query.

 Again, i really don't see the point of these tests. The only way these
 would change, if someone changes the code, a comment would cover that.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62801#comment:27>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list