Make WordPress Core


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

    r50451 r51518  
    131131         * @since 2.6.0
    132132         *
    133          * @param WP_Styles $this WP_Styles instance (passed by reference).
     133         * @param WP_Styles $wp_styles WP_Styles instance (passed by reference).
    134134         */
    135135        do_action_ref_array( 'wp_default_styles', array( &$this ) );
Note: See TracChangeset for help on using the changeset viewer.