Make WordPress Core


Ignore:
Timestamp:
03/20/2021 06:28:32 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Add a space before / character in some self-closing HTML tags.

While this has no effect on the code, it fixes a minor inconsistency with the rest of core.

Props laxman-prajapati.
Fixes #52870.

File:
1 edited

Legend:

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

    r50352 r50556  
    369369                <div class="wp-media-wrapper wp-audio">
    370370                    <audio style="visibility: hidden" controls class="wp-audio-shortcode" width="100%" preload="none">
    371                         <source type="{{ data.mime }}" src="{{ data.url }}"/>
     371                        <source type="{{ data.mime }}" src="{{ data.url }}" />
    372372                    </audio>
    373373                </div>
     
    385385                        <# if ( data.height ) { #>height="{{ data.height }}"<# } #>
    386386                        <# if ( data.image && data.image.src !== data.icon ) { #>poster="{{ data.image.src }}"<# } #>>
    387                         <source type="{{ data.mime }}" src="{{ data.url }}"/>
     387                        <source type="{{ data.mime }}" src="{{ data.url }}" />
    388388                    </video>
    389389                </div>
     
    615615                <div class="wp-media-wrapper wp-audio">
    616616                    <audio style="visibility: hidden" controls class="wp-audio-shortcode" width="100%" preload="none">
    617                         <source type="{{ data.mime }}" src="{{ data.url }}"/>
     617                        <source type="{{ data.mime }}" src="{{ data.url }}" />
    618618                    </audio>
    619619                </div>
     
    631631                        <# if ( data.height ) { #>height="{{ data.height }}"<# } #>
    632632                        <# if ( data.image && data.image.src !== data.icon ) { #>poster="{{ data.image.src }}"<# } #>>
    633                         <source type="{{ data.mime }}" src="{{ data.url }}"/>
     633                        <source type="{{ data.mime }}" src="{{ data.url }}" />
    634634                    </video>
    635635                </div>
     
    14921492
    14931493            <div class="favicon">
    1494                 <img id="preview-favicon" src="{{ data.url }}" alt="<?php esc_attr_e( 'Preview as a browser icon' ); ?>"/>
     1494                <img id="preview-favicon" src="{{ data.url }}" alt="<?php esc_attr_e( 'Preview as a browser icon' ); ?>" />
    14951495            </div>
    14961496            <span class="browser-title" aria-hidden="true"><# print( '<?php bloginfo( 'name' ); ?>' ) #></span>
     
    14991499        <strong aria-hidden="true"><?php _e( 'As an app icon' ); ?></strong>
    15001500        <div class="app-icon-preview">
    1501             <img id="preview-app-icon" src="{{ data.url }}" alt="<?php esc_attr_e( 'Preview as an app icon' ); ?>"/>
     1501            <img id="preview-app-icon" src="{{ data.url }}" alt="<?php esc_attr_e( 'Preview as an app icon' ); ?>" />
    15021502        </div>
    15031503    </script>
Note: See TracChangeset for help on using the changeset viewer.