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
This commit is contained in:
Scott Taylor 2014-03-05 21:46:14 +00:00
parent 9aa05f8681
commit f15e1bc1db
1 changed files with 14 additions and 14 deletions

View File

@ -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<#
} #>
/>
<#