Make WordPress Core


Ignore:
Timestamp:
07/30/2021 07:34:39 PM (5 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-network-query.php

    r49946 r51518  
    159159                 * @since 4.6.0
    160160                 *
    161                  * @param WP_Network_Query $this The WP_Network_Query instance (passed by reference).
     161                 * @param WP_Network_Query $query The WP_Network_Query instance (passed by reference).
    162162                 */
    163163                do_action_ref_array( 'parse_network_query', array( &$this ) );
    … …  
    194194                 * @since 4.6.0
    195195                 *
    196                  * @param WP_Network_Query $this Current instance of WP_Network_Query (passed by reference).
     196                 * @param WP_Network_Query $query Current instance of WP_Network_Query (passed by reference).
    197197                 */
    198198                do_action_ref_array( 'pre_get_networks', array( &$this ) );
Note: See TracChangeset for help on using the changeset viewer.