Make WordPress Core


Ignore:
Timestamp:
01/08/2021 02:28:46 PM (6 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-site-query.php

    r49693 r49946  
    319319                 *                                  the site count as an integer if `$this->query_vars['count']` is set,
    320320                 *                                  or null to run the normal queries.
    321                  * @param WP_Site_Query  $this      The WP_Site_Query instance, passed by reference.
     321                 * @param WP_Site_Query  $query     The WP_Site_Query instance, passed by reference.
    322322                 */
    323323                $site_data = apply_filters_ref_array( 'sites_pre_query', array( $site_data, &$this ) );
    … …  
    397397                 *
    398398                 * @param WP_Site[]     $_sites An array of WP_Site objects.
    399                  * @param WP_Site_Query $this   Current instance of WP_Site_Query (passed by reference).
     399                 * @param WP_Site_Query $query  Current instance of WP_Site_Query (passed by reference).
    400400                 */
    401401                $_sites = apply_filters_ref_array( 'the_sites', array( $_sites, &$this ) );
    … …  
    601601                         * @param string[]      $search_columns Array of column names to be searched.
    602602                         * @param string        $search         Text being searched.
    603                          * @param WP_Site_Query $this           The current WP_Site_Query instance.
     603                         * @param WP_Site_Query $query          The current WP_Site_Query instance.
    604604                         */
    605605                        $search_columns = apply_filters( 'site_search_columns', $search_columns, $this->query_vars['search'], $this );
    … …  
    638638                 *
    639639                 * @param string[]      $pieces An associative array of site query clauses.
    640                  * @param WP_Site_Query $this   Current instance of WP_Site_Query (passed by reference).
     640                 * @param WP_Site_Query $query  Current instance of WP_Site_Query (passed by reference).
    641641                 */
    642642                $clauses = apply_filters_ref_array( 'sites_clauses', array( compact( $pieces ), &$this ) );
Note: See TracChangeset for help on using the changeset viewer.