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.
Built from https://develop.svn.wordpress.org/trunk@51542


git-svn-id: http://core.svn.wordpress.org/trunk@51153 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2021-08-04 14:25:58 +00:00
parent 0be77d4ebf
commit 8f994d84de
2 changed files with 2 additions and 2 deletions

View File

@ -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>

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.9-alpha-51541';
$wp_version = '5.9-alpha-51542';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.