[wp-trac] [WordPress Trac] #51817: WP-Admin - Optimize main wpquery with 'fields' => 'ids' causes notice
WordPress Trac
noreply at wordpress.org
Tue Jun 10 15:43:33 UTC 2025
#51817: WP-Admin - Optimize main wpquery with 'fields' => 'ids' causes notice
-------------------------------------+-------------------------------------
Reporter: eumene | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 5.5.3
Severity: normal | Resolution:
Keywords: has-patch reporter- | Focuses: administration,
feedback | performance
-------------------------------------+-------------------------------------
Changes (by flixos90):
* keywords: has-patch => has-patch reporter-feedback
Comment:
@eumene Thank you for the report, and apologies that nobody looked at it
before.
At first glance, your proposal seems like a reasonable workaround,
allowing for `$a_post` to alternatively be a number. But then how does it
work in the `foreach` loop after where it renders the rows? For that it
would need the full object anyways to render the post information, right?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51817#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list