Make WordPress Core

Changeset 51542


Ignore:
Timestamp:
08/04/2021 02:23:18 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Media: Add / character to <img> tag in wp_print_media_templates().

While this has no effect on void elements in HTML5, it fixes a minor inconsistency with the rest of core.

Follow-up to [47493], [48834], [50556], [51473], [51541].

Props shital-patel, akabarikalpesh.
Fixes #53870.

File:
1 edited

Legend:

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

    r51395 r51542  
    14801480    <?php // Template for the Crop area layout, used for example in the Customizer. ?>
    14811481    <script type="text/html" id="tmpl-crop-content">
    1482         <img class="crop-image" src="{{ data.url }}" alt="<?php esc_attr_e( 'Image crop area preview. Requires mouse interaction.' ); ?>">
     1482        <img class="crop-image" src="{{ data.url }}" alt="<?php esc_attr_e( 'Image crop area preview. Requires mouse interaction.' ); ?>" />
    14831483        <div class="upload-errors"></div>
    14841484    </script>
Note: See TracChangeset for help on using the changeset viewer.