diff --git a/src/wp-includes/widgets/class-wp-widget-text.php b/src/wp-includes/widgets/class-wp-widget-text.php index 6477ff06b3..c5ebdd41e2 100644 --- a/src/wp-includes/widgets/class-wp-widget-text.php +++ b/src/wp-includes/widgets/class-wp-widget-text.php @@ -290,12 +290,31 @@ class WP_Widget_Text extends WP_Widget { echo $args['before_title'] . $title . $args['after_title']; } + $text = preg_replace_callback( '#<[^>]*>#', array( $this, 'inject_video_max_width_style' ), $text ); + ?>