Make WordPress Core

Ticket #40772: 40772.diff

File 40772.diff, 1.0 KB (added by swissspidy, 8 years ago)
  • src/wp-includes/widgets/class-wp-widget-text.php

    diff --git src/wp-includes/widgets/class-wp-widget-text.php src/wp-includes/widgets/class-wp-widget-text.php
    index 434a123f90..1867d122e6 100644
    class WP_Widget_Text extends WP_Widget { 
    9191                                 *
    9292                                 * @since 4.8.0
    9393                                 *
    94                                  * @param string         $widget_text The widget content.
    95                                  * @param array          $instance    Array of settings for the current widget.
    96                                  * @param WP_Widget_Text $this        Current Text widget instance.
     94                                 * @param string         $text    The widget content.
     95                                 * @param array          $instance Array of settings for the current widget.
     96                                 * @param WP_Widget_Text $this     Current Text widget instance.
    9797                                 */
    98                                 $text = apply_filters( 'widget_text_content', $widget_text, $instance, $this );
     98                                $text = apply_filters( 'widget_text_content', $text, $instance, $this );
    9999
    100100                        } elseif ( $instance['filter'] ) {
    101101                                $text = wpautop( $text ); // Back-compat for instances prior to 4.8.