diff --git src/wp-includes/default-filters.php src/wp-includes/default-filters.php
index ada9c53c3f..8f0237028d 100644
|
|
add_filter( 'widget_text_content', 'wptexturize' ); |
170 | 170 | add_filter( 'widget_text_content', 'convert_smilies', 20 ); |
171 | 171 | add_filter( 'widget_text_content', 'wpautop' ); |
172 | 172 | |
173 | | add_filter( 'widget_custom_html_content', 'balanceTags' ); |
174 | | |
175 | 173 | add_filter( 'date_i18n', 'wp_maybe_decline_date' ); |
176 | 174 | |
177 | 175 | // RSS filters |
diff --git src/wp-includes/widgets/class-wp-widget-custom-html.php src/wp-includes/widgets/class-wp-widget-custom-html.php
index 2db50f4d22..5de618285f 100644
|
|
class WP_Widget_Custom_HTML extends WP_Widget { |
61 | 61 | /** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */ |
62 | 62 | $title = apply_filters( 'widget_title', $instance['title'], $instance, $this->id_base ); |
63 | 63 | |
64 | | $content = $instance['content']; |
| 64 | /** This filter is documented in wp-includes/widgets/class-wp-widget-text.php */ |
| 65 | $content = apply_filters( 'widget_text', $instance['content'], $instance, $this ); |
65 | 66 | |
66 | 67 | /** |
67 | 68 | * Filters the content of the Custom HTML widget. |
diff --git src/wp-includes/widgets/class-wp-widget-text.php src/wp-includes/widgets/class-wp-widget-text.php
index ad4667bb0f..1d4d388bff 100644
|
|
class WP_Widget_Text extends WP_Widget { |
223 | 223 | * @since 2.3.0 |
224 | 224 | * @since 4.4.0 Added the `$this` parameter. |
225 | 225 | * |
226 | | * @param string $text The widget content. |
227 | | * @param array $instance Array of settings for the current widget. |
228 | | * @param WP_Widget_Text $this Current Text widget instance. |
| 226 | * @param string $text The widget content. |
| 227 | * @param array $instance Array of settings for the current widget. |
| 228 | * @param WP_Widget_Text|WP_Widget_Custom_HTML $this Current Text widget instance. |
229 | 229 | */ |
230 | 230 | $text = apply_filters( 'widget_text', $text, $instance, $this ); |
231 | 231 | |