Make WordPress Core


Ignore:
Timestamp:
07/30/2021 07:34:39 PM (4 years ago)
Author:
johnbillion
Message:

Docs: Replace $this in hook param docs with more appropriate names.

$this is a pseudo-variable that cannot be used as the name of a function parameter, so renaming these helps prevent errors when implementing hook callback functions.

Fixes #53457

File:
1 edited

Legend:

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

    r51184 r51518  
    235235         * @since 4.6.0
    236236         *
    237          * @param WP_Site_Query $this The WP_Site_Query instance (passed by reference).
     237         * @param WP_Site_Query $query The WP_Site_Query instance (passed by reference).
    238238         */
    239239        do_action_ref_array( 'parse_site_query', array( &$this ) );
     
    279279         * @since 4.6.0
    280280         *
    281          * @param WP_Site_Query $this Current instance of WP_Site_Query (passed by reference).
     281         * @param WP_Site_Query $query Current instance of WP_Site_Query (passed by reference).
    282282         */
    283283        do_action_ref_array( 'pre_get_sites', array( &$this ) );
Note: See TracChangeset for help on using the changeset viewer.