Make WordPress Core


Ignore:
Timestamp:
03/05/2014 09:45:13 PM (12 years ago)
Author:
wonderboymusic
Message:

Ensure that all a/v attribute names have a leading space when the tags are dynamically-generated via Underscore templates.

See #27016.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media-template.php

    r27420 r27421  
    666666                                                <#
    667667                                                if ( ! _.isUndefined( data.model.autoplay ) && data.model.autoplay ) {
    668                                                         #>autoplay<#
     668                                                        #> autoplay<#
    669669                                                }
    670670
    671671                                                if ( ! _.isUndefined( data.model.loop ) && data.model.loop ) {
    672                                                         #>loop<#
     672                                                        #> loop<#
    673673                                                } #>
    674674                                        />
     
    691691                                                <#
    692692                                                if ( ! _.isUndefined( data.model.autoplay ) && data.model.autoplay ) {
    693                                                         #>autoplay<#
     693                                                        #> autoplay<#
    694694                                                }
    695695                                                if ( ! _.isUndefined( data.model.loop ) && data.model.loop ) {
    696                                                         #>loop<#
     696                                                        #> loop<#
    697697                                                } #>
    698698                                        />
     
    761761                                                <#
    762762                                                if ( ! _.isUndefined( data.model.poster ) ) {
    763                                                         #>poster="{{{ data.model.poster }}}"<#
    764                                                 } #>
    765                                                 preload="{{{ _.isUndefined( data.model.preload ) ? 'metadata' : data.model.preload }}}"
     763                                                        #> poster="{{{ data.model.poster }}}"<#
     764                                                }
     765                                                #> preload="{{{ _.isUndefined( data.model.preload ) ? 'metadata' : data.model.preload }}}"
    766766                                                <#
    767767                                                if ( ! _.isUndefined( data.model.autoplay ) && data.model.autoplay ) {
    768                                                         #>autoplay<#
     768                                                        #> autoplay<#
    769769                                                }
    770770
    771771                                                if ( ! _.isUndefined( data.model.loop ) && data.model.loop ) {
    772                                                         #>loop<#
     772                                                        #> loop<#
    773773                                                } #>
    774774                                        />
     
    793793                                                <#
    794794                                                if ( ! _.isUndefined( data.model.poster ) ) {
    795                                                         #>poster="{{{ data.model.poster }}}"<#
    796                                                 } #>
    797                                                 preload="{{{ _.isUndefined( data.model.preload ) ? 'metadata' : data.model.preload }}}"
     795                                                        #> poster="{{{ data.model.poster }}}"<#
     796                                                }
     797                                                #> preload="{{{ _.isUndefined( data.model.preload ) ? 'metadata' : data.model.preload }}}"
    798798                                                <#
    799799                                                if ( ! _.isUndefined( data.model.autoplay ) && data.model.autoplay ) {
    800                                                         #>autoplay<#
     800                                                        #> autoplay<#
    801801                                                }
    802802
    803803                                                if ( ! _.isUndefined( data.model.loop ) && data.model.loop ) {
    804                                                         #>loop<#
     804                                                        #> loop<#
    805805                                                } #>
    806806                                        />
Note: See TracChangeset for help on using the changeset viewer.