[wp-trac] [WordPress Trac] #56992: The Loop displays incorrect data for queries started with `fields => 'id=>parent'`.

WordPress Trac noreply at wordpress.org
Sun Mar 16 02:32:58 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 SirLouen):

 Replying to [comment:50 peterwilsoncc]:
 > @SirLouen You've asked for a second opinion, received a second opinion
 and continue to prosecute this. I understand your argument but both Joe
 and I are in agreement that if a user starts the loop, the loop should
 work as intended.

 What I'm saying is the other way around: Explicitly encouraging developers
 on using `all` because of the clear performance impact.

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


More information about the wp-trac mailing list