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

    r50408 r51518  
    163163         * @since 2.6.0
    164164         *
    165          * @param WP_Scripts $this WP_Scripts instance (passed by reference).
     165         * @param WP_Scripts $wp_scripts WP_Scripts instance (passed by reference).
    166166         */
    167167        do_action_ref_array( 'wp_default_scripts', array( &$this ) );
Note: See TracChangeset for help on using the changeset viewer.