From b1c60775911825e2d50944399ded3006bf38523c Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 4 Aug 2020 12:47:06 +0000 Subject: [PATCH] Media: Remove extra space from the `width` attribute in `wp_playlist_shortcode()` output. Props hvar. Fixes #50840. Built from https://develop.svn.wordpress.org/trunk@48716 git-svn-id: http://core.svn.wordpress.org/trunk@48478 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/media.php | 31 +++++++++++++++---------------- wp-includes/version.php | 2 +- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/wp-includes/media.php b/wp-includes/media.php index 801e918f3f..b6b0800d67 100644 --- a/wp-includes/media.php +++ b/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( '