From 42dc935f9f8a8da8e712176487ef65c732117148 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 4 Aug 2020 12:45:57 +0000 Subject: [PATCH] Media: Remove extra space from the `width` attribute in `wp_playlist_shortcode()` output. Props hvar. Fixes #50840. git-svn-id: https://develop.svn.wordpress.org/trunk@48716 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/media.php | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php index 801e918f3f..b6b0800d67 100644 --- a/src/wp-includes/media.php +++ b/src/wp-includes/media.php @@ -2685,28 +2685,24 @@ function wp_playlist_shortcode( $attr ) { ?>
-
+
- < controls="controls" preload="none" width=" - - " - + < controls="controls" preload="none" width="" + >>
@@ -3207,13 +3203,16 @@ function wp_video_shortcode( $attr, $content = '' ) { } $html = ''; + if ( 'mediaelement' === $library && 1 === $instance ) { $html .= "\n"; } + $html .= sprintf( '