[wp-trac] [WordPress Trac] #45343: $query->post is null when WP_Query `fields` parameter is present
WordPress Trac
noreply at wordpress.org
Wed Jun 18 09:16:14 UTC 2025
#45343: $query->post is null when WP_Query `fields` parameter is present
----------------------------------------------+----------------------------
Reporter: wujek_bogdan | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Query | Version:
Severity: normal | Resolution:
Keywords: dev-feedback needs-testing close | Focuses:
----------------------------------------------+----------------------------
Changes (by callumbw95):
* keywords: dev-feedback needs-testing => dev-feedback needs-testing close
Comment:
Hi again, I should have done a bit more digging before submitting my
patch, as it seems between this ticket initially being raised and now the
$query->post variable is now documented as being set to null when passing
'ids' or 'id=>parent' to the fields argument. As of such this ticket most
likely should be closed as it is no longer relevant in the latest version
of WordPress.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45343#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list