mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Users: Use do_action_ref_array() for pre_get_users and pre_get_terms actions.
This brings some consistency with the other similar actions: * `pre_get_comments` * `pre_get_networks` * `pre_get_posts` * `pre_get_sites` * `pre_user_query` Follow-up to [29363] and [37572]. Props andy, adamsilverstein, hellofromTonya, desrosj, SergeyBiryukov. Fixes #50961. git-svn-id: https://develop.svn.wordpress.org/trunk@49637 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -321,9 +321,9 @@ class WP_Term_Query {
|
||||
*
|
||||
* @since 4.6.0
|
||||
*
|
||||
* @param WP_Term_Query $this Current instance of WP_Term_Query.
|
||||
* @param WP_Term_Query $this Current instance of WP_Term_Query (passed by reference).
|
||||
*/
|
||||
do_action( 'pre_get_terms', $this );
|
||||
do_action_ref_array( 'pre_get_terms', array( &$this ) );
|
||||
|
||||
$taxonomies = (array) $args['taxonomy'];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user