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

    r49946 r51518  
    395395                 * @since 3.4.0
    396396                 *
    397                  * @param WP_Customize_Setting $this WP_Customize_Setting instance.
     397                 * @param WP_Customize_Setting $setting WP_Customize_Setting instance.
    398398                 */
    399399                do_action( "customize_preview_{$this->id}", $this );
     
    407407                 * @since 4.1.0
    408408                 *
    409                  * @param WP_Customize_Setting $this WP_Customize_Setting instance.
     409                 * @param WP_Customize_Setting $setting WP_Customize_Setting instance.
    410410                 */
    411411                do_action( "customize_preview_{$this->type}", $this );
     
    534534         * @since 3.4.0
    535535         *
    536          * @param WP_Customize_Setting $this WP_Customize_Setting instance.
     536         * @param WP_Customize_Setting $setting WP_Customize_Setting instance.
    537537         */
    538538        do_action( "customize_save_{$id_base}", $this );
     
    570570         * @since 3.4.0
    571571         *
    572          * @param mixed                $value Value of the setting.
    573          * @param WP_Customize_Setting $this WP_Customize_Setting instance.
     572         * @param mixed                $value   Value of the setting.
     573         * @param WP_Customize_Setting $setting WP_Customize_Setting instance.
    574574         */
    575575        return apply_filters( "customize_sanitize_{$this->id}", $value, $this );
     
    698698             * @since 3.4.0
    699699             *
    700              * @param mixed                $value Value of the setting.
    701              * @param WP_Customize_Setting $this WP_Customize_Setting instance.
     700             * @param mixed                $value   Value of the setting.
     701             * @param WP_Customize_Setting $setting WP_Customize_Setting instance.
    702702             */
    703703            do_action( "customize_update_{$this->type}", $value, $this );
Note: See TracChangeset for help on using the changeset viewer.