[wp-trac] [WordPress Trac] #40661: WP_Term_Query->parse_query() needs filter like 'get_terms'
WordPress Trac
noreply at wordpress.org
Wed Jun 14 17:52:14 UTC 2017
#40661: WP_Term_Query->parse_query() needs filter like 'get_terms'
-------------------------------------------------+-------------------------
Reporter: mpol | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting
Component: Taxonomy | Review
Severity: normal | Version:
Keywords: has-patch needs-refresh needs-unit- | Resolution:
tests | Focuses:
-------------------------------------------------+-------------------------
Comment (by jarocks):
For consistency with the `::parse_query()` method in `WP_Query`, it might
make more sense to implement this similarly to the filter
`posts_pre_query`. See [attachment:40661.diff] for my iteration of a
`terms_pre_query` filter.
This is more a proof of concept than anything else, I'm not sure if it
makes sense to leave the burden of handling term caching as well as the
`hide_empty` and the `pad_counts` parameters.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40661#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list