[wp-trac] [WordPress Trac] #41246: Filter to short circuit term query 'terms_pre_query'
WordPress Trac
noreply at wordpress.org
Mon Jul 1 20:47:31 UTC 2019
#41246: Filter to short circuit term query 'terms_pre_query'
---------------------------------------------+-----------------------------
Reporter: jarocks | Owner:
| adamsilverstein
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.3
Component: Taxonomy | Version: 4.6
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses:
---------------------------------------------+-----------------------------
Changes (by adamsilverstein):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"45584" 45584]:
{{{
#!CommitTicketReference repository="" revision="45584"
Taxonomy: add a new 'terms_pre_query' filter to short circuit
WP_Term_Query 'get_terms' queries.
Add a new `terms_pre_query` filter which returns null by default. Return a
non-null value to bypass WordPress's default `get_terms` queries.
Props jarocks, boonebgorges, spacedmonkey.
Fixes #41246.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41246#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list