WordPress.org

Make WordPress Core

Ticket #50961: 50961.diff

File 50961.diff, 1.9 KB (added by SergeyBiryukov, 13 months ago)
  • src/wp-includes/class-wp-term-query.php

     
    321321                 *
    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'];
    329329
  • src/wp-includes/class-wp-user-query.php

     
    219219                /**
    220220                 * Fires before the WP_User_Query has been parsed.
    221221                 *
    222                  * The passed WP_User_Query object contains the query variables, not
    223                  * yet passed into SQL.
     222                 * The passed WP_User_Query object contains the query variables,
     223                 * not yet passed into SQL.
    224224                 *
    225225                 * @since 4.0.0
    226226                 *
    227                  * @param WP_User_Query $this The current WP_User_Query instance,
    228                  *                            passed by reference.
     227                 * @param WP_User_Query $this Current instance of WP_User_Query (passed by reference).
    229228                 */
    230                 do_action( 'pre_get_users', $this );
     229                do_action_ref_array( 'pre_get_users', array( &$this ) );
    231230
    232231                // Ensure that query vars are filled after 'pre_get_users'.
    233232                $qv =& $this->query_vars;
     
    576575                 *
    577576                 * @since 3.1.0
    578577                 *
    579                  * @param WP_User_Query $this The current WP_User_Query instance,
    580                  *                            passed by reference.
     578                 * @param WP_User_Query $this Current instance of WP_User_Query (passed by reference).
    581579                 */
    582580                do_action_ref_array( 'pre_user_query', array( &$this ) );
    583581        }