[wp-trac] [WordPress Trac] #57416: Do not split query if requesting one post

WordPress Trac noreply at wordpress.org
Thu Nov 16 12:27:15 UTC 2023


#57416: Do not split query if requesting one post
-------------------------------------------------+-------------------------
 Reporter:  spacedmonkey                         |       Owner:
                                                 |  spacedmonkey
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Query                                |     Version:  3.0
 Severity:  normal                               |  Resolution:
 Keywords:  good-first-bug has-patch dev-        |     Focuses:
  feedback needs-testing needs-unit-tests        |  performance
  needs-refresh                                  |
-------------------------------------------------+-------------------------
Changes (by darthhexx):

 * Attachment "57416.2.diff" added.

 Add a condition to split_the_query for whether the call is for a single
 post and add unit tests.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57416>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list