[wp-trac] [WordPress Trac] #38589: hook 'get_terms_args' calls two times ...
WordPress Trac
noreply at wordpress.org
Tue Nov 1 14:23:31 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 boonebgorges):
Hi @Offereins - In contexts like the following, the query object is passed
by reference as the default behavior in PHP 5+:
{{{
do_action( 'parse_term_query', $this );
}}}
Instances of `&$this` in the codebase are a remnant of PHP 4 support.
(We've already spoken about this over Slack, but I wanted to repeat it
here for posterity :) )
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38589#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list