Make WordPress Core


Ignore:
Timestamp:
11/17/2020 08:07:57 PM (4 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-term-query.php

    r49189 r49637  
    322322         * @since 4.6.0
    323323         *
    324          * @param WP_Term_Query $this Current instance of WP_Term_Query.
     324         * @param WP_Term_Query $this Current instance of WP_Term_Query (passed by reference).
    325325         */
    326         do_action( 'pre_get_terms', $this );
     326        do_action_ref_array( 'pre_get_terms', array( &$this ) );
    327327
    328328        $taxonomies = (array) $args['taxonomy'];
Note: See TracChangeset for help on using the changeset viewer.