Changeset 40673 for trunk/src/wp-includes/widgets/class-wp-widget-text.php
- Timestamp:
- 05/15/2017 10:35:41 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets/class-wp-widget-text.php
r40631 r40673 68 68 $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base ); 69 69 70 $ widget_text = ! empty( $instance['text'] ) ? $instance['text'] : '';70 $text = ! empty( $instance['text'] ) ? $instance['text'] : ''; 71 71 72 72 /** … … 76 76 * @since 4.4.0 Added the `$this` parameter. 77 77 * 78 * @param string $ widget_textThe widget content.79 * @param array $instance Array of settings for the current widget.80 * @param WP_Widget_Text $this Current Text widget instance.78 * @param string $text The widget content. 79 * @param array $instance Array of settings for the current widget. 80 * @param WP_Widget_Text $this Current Text widget instance. 81 81 */ 82 $text = apply_filters( 'widget_text', $ widget_text, $instance, $this );82 $text = apply_filters( 'widget_text', $text, $instance, $this ); 83 83 84 84 if ( isset( $instance['filter'] ) ) { … … 92 92 * @since 4.8.0 93 93 * 94 * @param string $ widget_textThe 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. 97 97 */ 98 $text = apply_filters( 'widget_text_content', $ widget_text, $instance, $this );98 $text = apply_filters( 'widget_text_content', $text, $instance, $this ); 99 99 100 100 } elseif ( $instance['filter'] ) {
Note: See TracChangeset
for help on using the changeset viewer.