Make WordPress Core


Ignore:
Timestamp:
01/08/2021 02:28:46 PM (4 years ago)
Author:
johnbillion
Message:

Plugins: Replace usage of $this in action and filter parameter docblocks with more appropriate variable names.

See #51800, #52217

Fixes #52243

File:
1 edited

Legend:

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

    r49693 r49946  
    225225         * @since 4.0.0
    226226         *
    227          * @param WP_User_Query $this Current instance of WP_User_Query (passed by reference).
     227         * @param WP_User_Query $query Current instance of WP_User_Query (passed by reference).
    228228         */
    229229        do_action_ref_array( 'pre_get_users', array( &$this ) );
     
    545545             * @param string[]      $search_columns Array of column names to be searched.
    546546             * @param string        $search         Text being searched.
    547              * @param WP_User_Query $this           The current WP_User_Query instance.
     547             * @param WP_User_Query $query          The current WP_User_Query instance.
    548548             */
    549549            $search_columns = apply_filters( 'user_search_columns', $search_columns, $search, $this );
     
    576576         * @since 3.1.0
    577577         *
    578          * @param WP_User_Query $this Current instance of WP_User_Query (passed by reference).
     578         * @param WP_User_Query $query Current instance of WP_User_Query (passed by reference).
    579579         */
    580580        do_action_ref_array( 'pre_user_query', array( &$this ) );
     
    605605         * @since 5.1.0
    606606         *
    607          * @param array|null $results Return an array of user data to short-circuit WP's user query
    608          *                            or null to allow WP to run its normal queries.
    609          * @param WP_User_Query $this The WP_User_Query instance (passed by reference).
     607         * @param array|null    $results Return an array of user data to short-circuit WP's user query
     608         *                               or null to allow WP to run its normal queries.
     609         * @param WP_User_Query $query  The WP_User_Query instance (passed by reference).
    610610         */
    611611        $this->results = apply_filters_ref_array( 'users_pre_query', array( null, &$this ) );
     
    629629                 * @global wpdb $wpdb WordPress database abstraction object.
    630630                 *
    631                  * @param string $sql         The SELECT FOUND_ROWS() query for the current WP_User_Query.
    632                  * @param WP_User_Query $this The current WP_User_Query instance.
     631                 * @param string        $sql   The SELECT FOUND_ROWS() query for the current WP_User_Query.
     632                 * @param WP_User_Query $query The current WP_User_Query instance.
    633633                 */
    634634                $found_users_query = apply_filters( 'found_users_query', 'SELECT FOUND_ROWS()', $this );
Note: See TracChangeset for help on using the changeset viewer.