Skip to content

Commit

Permalink
Media: Add / character to <img> tag in wp_print_media_templates().
Browse files Browse the repository at this point in the history
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.

git-svn-id: https://develop.svn.wordpress.org/trunk@51542 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Aug 4, 2021
1 parent 2ed4b82 commit a52d8cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp-includes/media-template.php
Expand Up @@ -1479,7 +1479,7 @@ function wp_print_media_templates() {

<?php // Template for the Crop area layout, used for example in the Customizer. ?>
<script type="text/html" id="tmpl-crop-content">
<img class="crop-image" src="{{ data.url }}" alt="<?php esc_attr_e( 'Image crop area preview. Requires mouse interaction.' ); ?>">
<img class="crop-image" src="{{ data.url }}" alt="<?php esc_attr_e( 'Image crop area preview. Requires mouse interaction.' ); ?>" />
<div class="upload-errors"></div>
</script>

Expand Down

0 comments on commit a52d8cd

Please sign in to comment.