[wp-trac] [WordPress Trac] #56992: The Loop displays incorrect data for queries started with `fields => 'id=>parent'`.
WordPress Trac
noreply at wordpress.org
Fri Mar 14 22:49:33 UTC 2025
#56992: The Loop displays incorrect data for queries started with `fields =>
'id=>parent'`.
--------------------------------------+----------------------------
Reporter: peterwilsoncc | Owner: peterwilsoncc
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 6.8
Component: Query | Version: 3.1
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: performance
--------------------------------------+----------------------------
Comment (by peterwilsoncc):
Honestly, the second part was playing around with micro-optimisations to
see if comparing a string would be faster than type checking.
The main focus has been avoiding looping through the posts in the first
section when it's known their complete objects or IDs. I'll get
[https://github.com/WordPress/wordpress-develop/pull/8495 PR#8495] back in
a normal (ie, running a full, unhacked test suite).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56992#comment:46>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list