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.php

    r50271 r51518  
    140140         *
    141141         * @param bool         $bool             Whether or not to parse the request. Default true.
    142          * @param WP           $this             Current WordPress environment instance.
     142         * @param WP           $wp               Current WordPress environment instance.
    143143         * @param array|string $extra_query_vars Extra passed query variables.
    144144         */
     
    384384         * @since 2.1.0
    385385         *
    386          * @param WP $this Current WordPress environment instance (passed by reference).
     386         * @param WP $wp Current WordPress environment instance (passed by reference).
    387387         */
    388388        do_action_ref_array( 'parse_request', array( &$this ) );
     
    523523         * @since 2.1.0
    524524         *
    525          * @param WP $this Current WordPress environment instance (passed by reference).
     525         * @param WP $wp Current WordPress environment instance (passed by reference).
    526526         */
    527527        do_action_ref_array( 'send_headers', array( &$this ) );
     
    759759         * @since 2.1.0
    760760         *
    761          * @param WP $this Current WordPress environment instance (passed by reference).
     761         * @param WP $wp Current WordPress environment instance (passed by reference).
    762762         */
    763763        do_action_ref_array( 'wp', array( &$this ) );
Note: See TracChangeset for help on using the changeset viewer.