WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/08/2021 02:28:46 PM (11 months 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/class-wp-widget.php

    r49120 r49946  
    364364             *
    365365             * @param array     $instance The current widget instance's settings.
    366              * @param WP_Widget $this     The current widget instance.
     366             * @param WP_Widget $widget   The current widget instance.
    367367             * @param array     $args     An array of default widget arguments.
    368368             */
     
    458458                 * @param array     $new_instance Array of new widget settings.
    459459                 * @param array     $old_instance Array of old widget settings.
    460                  * @param WP_Widget $this         The current widget instance.
     460                 * @param WP_Widget $widget       The current widget instance.
    461461                 */
    462462                $instance = apply_filters( 'widget_update_callback', $instance, $new_instance, $old_instance, $this );
     
    511511         *
    512512         * @param array     $instance The current widget instance's settings.
    513          * @param WP_Widget $this     The current widget instance.
     513         * @param WP_Widget $widget   The current widget instance.
    514514         */
    515515        $instance = apply_filters( 'widget_form_callback', $instance, $this );
     
    531531             * @since 2.8.0
    532532             *
    533              * @param WP_Widget $this     The widget instance (passed by reference).
     533             * @param WP_Widget $widget   The widget instance (passed by reference).
    534534             * @param null      $return   Return null if new fields are added.
    535535             * @param array     $instance An array of the widget's settings.
Note: See TracChangeset for help on using the changeset viewer.