Opened 7 years ago
Last modified 18 months ago
#41678 new enhancement
Make sure all field returns use filters in WP Query
Reported by: | spacedmonkey | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 1.5 |
Component: | Query | Keywords: | has-patch needs-unit-tests dev-feedback |
Focuses: | Cc: |
Description
Currently if fields is set to either id
or id=>parent
, it doesn't run through all the filters as these return early.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
In 41678.diff code has be refactored to run through more filters.
Key features
posts_results_ids
for query of 'ids', to get a filter of result of query. Useful for caching plugins. This new filter is added, asposts_results
expects an array ofWP_Post
objects.the_posts
,posts_results
,posts_request_ids
andsplit_the_query
.This patch will be extremely useful for a plugin like elasticpress.