[wp-trac] [WordPress Trac] #57416: Do not split query if requesting one post
WordPress Trac
noreply at wordpress.org
Sun Jul 2 21:31:31 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 | performance
-------------------------------------------------+-------------------------
Changes (by mkox):
* keywords: good-first-bug needs-patch => good-first-bug has-patch dev-
feedback needs-testing
Comment:
The patch simply checks query field 'posts_per_page' equals to 1 and sets
split flag to false in this case and skips other filtering whether to
split.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57416#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list