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

    r51154 r51518  
    347347                 *
    348348                 * @param string[]             $components Array of core components to load.
    349                  * @param WP_Customize_Manager $this       WP_Customize_Manager instance.
     349                 * @param WP_Customize_Manager $manager   WP_Customize_Manager instance.
    350350                 */
    351351                $components = apply_filters( 'customize_loaded_components', $this->components, $this );
     
    692692                 * @since 3.4.0
    693693                 *
    694                  * @param WP_Customize_Manager $this WP_Customize_Manager instance.
     694                 * @param WP_Customize_Manager $manager WP_Customize_Manager instance.
    695695                 */
    696696                do_action( 'start_previewing_theme', $this );
     
    730730                 * @since 3.4.0
    731731                 *
    732                  * @param WP_Customize_Manager $this WP_Customize_Manager instance.
     732                 * @param WP_Customize_Manager $manager WP_Customize_Manager instance.
    733733                 */
    734734                do_action( 'stop_previewing_theme', $this );
     
    929929                 * @since 3.4.0
    930930                 *
    931                  * @param WP_Customize_Manager $this WP_Customize_Manager instance.
     931                 * @param WP_Customize_Manager $manager WP_Customize_Manager instance.
    932932                 */
    933933                do_action( 'customize_register', $this );
     
    18601860                 * @since 4.4.0
    18611861                 *
    1862                  * @param mixed                $value Unsanitized setting post value.
    1863                  * @param WP_Customize_Manager $this WP_Customize_Manager instance.
     1862                 * @param mixed                $value   Unsanitized setting post value.
     1863                 * @param WP_Customize_Manager $manager WP_Customize_Manager instance.
    18641864                 */
    18651865                do_action( "customize_post_value_set_{$setting_id}", $value, $this );
     
    18771877                 * @param string               $setting_id Setting ID.
    18781878                 * @param mixed                $value      Unsanitized setting post value.
    1879                  * @param WP_Customize_Manager $this       WP_Customize_Manager instance.
     1879                 * @param WP_Customize_Manager $manager    WP_Customize_Manager instance.
    18801880                 */
    18811881                do_action( 'customize_post_value_set', $setting_id, $value, $this );
     
    19381938                 * @since 3.4.0
    19391939                 *
    1940                  * @param WP_Customize_Manager $this WP_Customize_Manager instance.
     1940                 * @param WP_Customize_Manager $manager WP_Customize_Manager instance.
    19411941                 */
    19421942                do_action( 'customize_preview_init', $this );
     
    25932593                 * @param array                $response Additional information passed back to the 'saved'
    25942594                 *                                       event on `wp.customize`.
    2595                  * @param WP_Customize_Manager $this     WP_Customize_Manager instance.
     2595                 * @param WP_Customize_Manager $manager  WP_Customize_Manager instance.
    25962596                 */
    25972597                $response = apply_filters( 'customize_save_response', $response, $this );
     
    27612761                 * @since 4.6.0
    27622762                 *
    2763                  * @param WP_Customize_Manager $this WP_Customize_Manager instance.
     2763                 * @param WP_Customize_Manager $manager WP_Customize_Manager instance.
    27642764                 */
    27652765                do_action( 'customize_save_validation_before', $this );
     
    47554755                 * @since 4.2.0
    47564756                 *
    4757                  * @param string[]             $nonces Array of refreshed nonces for save and
    4758                  *                                     preview actions.
    4759                  * @param WP_Customize_Manager $this  WP_Customize_Manager instance.
     4757                 * @param string[]             $nonces  Array of refreshed nonces for save and
     4758                 *                                      preview actions.
     4759                 * @param WP_Customize_Manager $manager WP_Customize_Manager instance.
    47604760                 */
    47614761                $nonces = apply_filters( 'customize_refresh_nonces', $nonces, $this );
Note: See TracChangeset for help on using the changeset viewer.