Make WordPress Core


Ignore:
Timestamp:
01/08/2021 02:28:46 PM (6 years ago)
Author:
johnbillion
Message:

Plugins: Replace usage of $this in action and filter parameter docblocks with more appropriate variable names.

See #51800, #52217

Fixes #52243

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/widgets/class-wp-widget-text.php

    r49215 r49946  
    271271                 *
    272272                 * @since 2.3.0
    273                  * @since 4.4.0 Added the `$this` parameter.
    274                  * @since 4.8.1 The `$this` param may now be a `WP_Widget_Custom_HTML` object in addition to a `WP_Widget_Text` object.
     273                 * @since 4.4.0 Added the `$widget` parameter.
     274                 * @since 4.8.1 The `$widget` param may now be a `WP_Widget_Custom_HTML` object in addition to a `WP_Widget_Text` object.
    275275                 *
    276276                 * @param string                               $text     The widget content.
    277277                 * @param array                                $instance Array of settings for the current widget.
    278                  * @param WP_Widget_Text|WP_Widget_Custom_HTML $this     Current Text widget instance.
     278                 * @param WP_Widget_Text|WP_Widget_Custom_HTML $widget   Current text or HTML widget instance.
    279279                 */
    280280                $text = apply_filters( 'widget_text', $text, $instance, $this );
     
    291291                         * @param string         $text     The widget content.
    292292                         * @param array          $instance Array of settings for the current widget.
    293                          * @param WP_Widget_Text $this     Current Text widget instance.
     293                         * @param WP_Widget_Text $widget   Current Text widget instance.
    294294                         */
    295295                        $text = apply_filters( 'widget_text_content', $text, $instance, $this );
Note: See TracChangeset for help on using the changeset viewer.