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

    r50996 r51518  
    398398         * @since 3.4.0
    399399         *
    400          * @param WP_Customize_Control $this WP_Customize_Control instance.
     400         * @param WP_Customize_Control $control WP_Customize_Control instance.
    401401         */
    402402        do_action( 'customize_render_control', $this );
     
    410410         * @since 3.4.0
    411411         *
    412          * @param WP_Customize_Control $this WP_Customize_Control instance.
     412         * @param WP_Customize_Control $control WP_Customize_Control instance.
    413413         */
    414414        do_action( "customize_render_control_{$this->id}", $this );
Note: See TracChangeset for help on using the changeset viewer.