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:
Sergey Biryukov
2020-11-17 20:07:57 +00:00
parent f6e265070d
commit 2486c13ee7
2 changed files with 7 additions and 9 deletions

View File

@@ -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'];