[wp-trac] [WordPress Trac] #59442: Duplicate query in WP_Query
WordPress Trac
noreply at wordpress.org
Mon Apr 15 12:41:40 UTC 2024
#59442: Duplicate query in WP_Query
-------------------------------------------------+-------------------------
Reporter: spacedmonkey | Owner: pbearne
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 6.6
Component: Query | Version: 6.2
Severity: normal | Resolution:
Keywords: has-patch dev-feedback early | Focuses:
changes-requested | performance
-------------------------------------------------+-------------------------
Comment (by spacedmonkey):
@pbearne I have created a new patch. https://github.com/WordPress
/wordpress-develop/pull/6393.
I am going to make some unit tests but I think I finally cracked it.
Basically the issue, is that orderby and post types can be set to empty
values in the args, so it results in duplicate queries.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59442#comment:35>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list