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/customize/class-wp-customize-selective-refresh.php

    r49946 r51518  
    336336         * @since 4.5.0
    337337         *
    338          * @param WP_Customize_Selective_Refresh $this     Selective refresh component.
     338         * @param WP_Customize_Selective_Refresh $refresh  Selective refresh component.
    339339         * @param array                          $partials Placements' context data for the partials rendered in the request.
    340340         *                                                 The array is keyed by partial ID, with each item being an array of
     
    385385         * @since 4.5.0
    386386         *
    387          * @param WP_Customize_Selective_Refresh $this     Selective refresh component.
     387         * @param WP_Customize_Selective_Refresh $refresh  Selective refresh component.
    388388         * @param array                          $partials Placements' context data for the partials rendered in the request.
    389389         *                                                 The array is keyed by partial ID, with each item being an array of
Note: See TracChangeset for help on using the changeset viewer.