[wp-trac] [WordPress Trac] #56992: The Loop displays incorrect data for queries started with `fields => 'id=>parent'`.
WordPress Trac
noreply at wordpress.org
Tue Mar 4 09:55:20 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: needs-patch 2nd-opinion | Focuses:
-------------------------------------+----------------------------
Comment (by wildworks):
I anticipate that we might need to add an `is_preview` check here and grab
the unsaved post object:
https://github.com/WordPress/WordPress/blob/a9ea0e8be55f8dd8459ddf099406b44402d2a190
/wp-includes/class-wp-query.php#L3790
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56992#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list