From f15e1bc1db95e4978c3c76d080921d7363377771 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Wed, 5 Mar 2014 21:46:14 +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. Built from https://develop.svn.wordpress.org/trunk@27421 git-svn-id: http://core.svn.wordpress.org/trunk@27268 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/media-template.php | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/wp-includes/media-template.php b/wp-includes/media-template.php index fc423f20c7..2a233da76a 100644 --- a/wp-includes/media-template.php +++ b/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<# } #> /> <#