[wp-trac] [WordPress Trac] #54371: Add posts_results-like filters to WP_Query when return fields are ids or id=>parent
WordPress Trac
noreply at wordpress.org
Mon Mar 21 17:08:43 UTC 2022
#54371: Add posts_results-like filters to WP_Query when return fields are ids or
id=>parent
-------------------------+---------------------
Reporter: sc0ttkclark | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 6.0
Component: Query | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------+---------------------
Comment (by sc0ttkclark):
@spacedmonkey In this case, the intention of the two separate filters is
to allow the override to set up the posts array dependent upon how it
should be. In one case it's a list of ID integers, in another it's a list
of simple objects containing only ID and post_parent.
If there was a suitable solution that simplified that based on the
expectation of what $this->posts will contain on each return type, I'd
love to see what that could be.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54371#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list