From ca8f1c024a61636122f8d2ed5741002d99e8602f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 13 Sep 2016 13:44:33 +0000 Subject: [PATCH] Media: Remove an extra space in `style` attribute in `wp_video_shortcode()` after [30082]. Props danielpietrasik. Fixes #38040. git-svn-id: https://develop.svn.wordpress.org/trunk@38597 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php index fd3bf431ac..99adf74434 100644 --- a/src/wp-includes/media.php +++ b/src/wp-includes/media.php @@ -2603,7 +2603,7 @@ function wp_video_shortcode( $attr, $content = '' ) { $width_rule = ''; if ( ! empty( $atts['width'] ) ) { - $width_rule = sprintf( 'width: %dpx; ', $atts['width'] ); + $width_rule = sprintf( 'width: %dpx;', $atts['width'] ); } $output = sprintf( '
%s
', $width_rule, $html );