From 7a6744a93c51339d1b6c4ca83e25a66c866a5304 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Wed, 5 Mar 2014 21:45:13 +0000 Subject: [PATCH] Ensure that all a/v attribute names have a leading space when the tags are dynamically-generated via Underscore templates. See #27016. git-svn-id: https://develop.svn.wordpress.org/trunk@27421 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/media-template.php | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/wp-includes/media-template.php b/src/wp-includes/media-template.php index fc423f20c7..2a233da76a 100644 --- a/src/wp-includes/media-template.php +++ b/src/wp-includes/media-template.php @@ -665,11 +665,11 @@ function wp_print_media_templates() { preload="{{{ _.isUndefined( data.model.preload ) ? 'none' : data.model.preload }}}" <# if ( ! _.isUndefined( data.model.autoplay ) && data.model.autoplay ) { - #>autoplay<# + #> autoplay<# } if ( ! _.isUndefined( data.model.loop ) && data.model.loop ) { - #>loop<# + #> loop<# } #> /> <# rendered = true; #> @@ -690,10 +690,10 @@ function wp_print_media_templates() { preload="{{{ _.isUndefined( data.model.preload ) ? 'none' : data.model.preload }}}" <# if ( ! _.isUndefined( data.model.autoplay ) && data.model.autoplay ) { - #>autoplay<# + #> autoplay<# } if ( ! _.isUndefined( data.model.loop ) && data.model.loop ) { - #>loop<# + #> loop<# } #> /> <# @@ -760,16 +760,16 @@ function wp_print_media_templates() { src="{{{ src }}}" <# if ( ! _.isUndefined( data.model.poster ) ) { - #>poster="{{{ data.model.poster }}}"<# - } #> - preload="{{{ _.isUndefined( data.model.preload ) ? 'metadata' : data.model.preload }}}" + #> poster="{{{ data.model.poster }}}"<# + } + #> preload="{{{ _.isUndefined( data.model.preload ) ? 'metadata' : data.model.preload }}}" <# if ( ! _.isUndefined( data.model.autoplay ) && data.model.autoplay ) { - #>autoplay<# + #> autoplay<# } if ( ! _.isUndefined( data.model.loop ) && data.model.loop ) { - #>loop<# + #> loop<# } #> /> <# rendered = true; #> @@ -792,16 +792,16 @@ function wp_print_media_templates() { src="{{{ src }}}" <# if ( ! _.isUndefined( data.model.poster ) ) { - #>poster="{{{ data.model.poster }}}"<# - } #> - preload="{{{ _.isUndefined( data.model.preload ) ? 'metadata' : data.model.preload }}}" + #> poster="{{{ data.model.poster }}}"<# + } + #> preload="{{{ _.isUndefined( data.model.preload ) ? 'metadata' : data.model.preload }}}" <# if ( ! _.isUndefined( data.model.autoplay ) && data.model.autoplay ) { - #>autoplay<# + #> autoplay<# } if ( ! _.isUndefined( data.model.loop ) && data.model.loop ) { - #>loop<# + #> loop<# } #> /> <#