[wp-trac] [WordPress Trac] #38589: hook 'get_terms_args' calls two times ...

WordPress Trac noreply at wordpress.org
Tue Nov 1 07:38:33 UTC 2016


#38589: hook 'get_terms_args' calls two times ...
--------------------------+---------------------------
 Reporter:  Tkama         |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.7
Component:  Taxonomy      |     Version:  4.6
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |     Focuses:
--------------------------+---------------------------

Comment (by Offereins):

 If I understand correctly, since r39057, the query vars of `WP_Term_Query`
 cannot be modified when parsing them on a standalone query object (when
 not calling `get_terms()`), right? This is because the query object in the
 `parse_term_query` and `pre_get_terms` actions isn't provided by reference
 (which is the case in the similar hooks in `WP_Query`).

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


More information about the wp-trac mailing list