[wp-trac] [WordPress Trac] #38589: hook 'get_terms_args' calls two times ...
WordPress Trac
noreply at wordpress.org
Mon Oct 31 10:49:38 UTC 2016
#38589: hook 'get_terms_args' calls two times ...
----------------------------+-----------------------------
Reporter: Tkama | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.6.1
Severity: normal | Keywords:
Focuses: administration |
----------------------------+-----------------------------
There is no logic situation in new WP_Term_Query class
Look into `get_terms()` method - it calls `$this->parse_query(
$this->query_vars );`. When parse_query call hook 'get_terms_args' a
after it `get_terms()` itself calls hook
'get_terms_args' one more time.
So in one request we have double hook calls...
It seems like bug!
link to class:
https://developer.wordpress.org/reference/classes/wp_term_query/
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38589>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list