[wp-trac] [WordPress Trac] #40661: WP_Term_Query->parse_query() needs filter like 'get_terms'

WordPress Trac noreply at wordpress.org
Fri Aug 4 17:50:57 UTC 2017


#40661: WP_Term_Query->parse_query() needs filter like 'get_terms'
------------------------------------------+------------------------------
 Reporter:  mpol                          |       Owner:
     Type:  enhancement                   |      Status:  new
 Priority:  normal                        |   Milestone:  Awaiting Review
Component:  Taxonomy                      |     Version:
 Severity:  normal                        |  Resolution:
 Keywords:  needs-unit-tests needs-patch  |     Focuses:
------------------------------------------+------------------------------

Comment (by mpol):

 Ah, interesting :). I didn't know caches only use raw data.
 I am not sure of the implications of #37189, I will wait what happens with
 that.

 For now I attached a new patch (see above).
 The filter on line 672 is about getting data from cache, filtering it and
 returning it.
 The same filter on line 804 is about fresh data that is being filtered,
 after it has been added to cache.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40661#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list