Customize: Add /
character to <img>
tag in WP_Customize_Manager
and WP_Customize_Header_Image_Control
JS templates.
While this has no effect on void elements in HTML5, it fixes a minor inconsistency with the rest of core. Props laxman-prajapati. Fixes #51077. git-svn-id: https://develop.svn.wordpress.org/trunk@48834 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1b78e495b2
commit
5ad8969179
@ -4273,7 +4273,7 @@ final class WP_Customize_Manager {
|
||||
<script type="text/html" id="tmpl-customize-changeset-locked-notification">
|
||||
<li class="notice notice-{{ data.type || 'info' }} {{ data.containerClasses || '' }}" data-code="{{ data.code }}" data-type="{{ data.type }}">
|
||||
<div class="notification-message customize-changeset-locked-message">
|
||||
<img class="customize-changeset-locked-avatar" src="{{ data.lockUser.avatar }}" alt="{{ data.lockUser.name }}">
|
||||
<img class="customize-changeset-locked-avatar" src="{{ data.lockUser.avatar }}" alt="{{ data.lockUser.name }}" />
|
||||
<p class="currently-editing">
|
||||
<# if ( data.message ) { #>
|
||||
{{{ data.message }}}
|
||||
|
@ -133,7 +133,7 @@ class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control {
|
||||
data-customize-image-value="{{{data.header.url}}}"
|
||||
data-customize-header-image-data="{{JSON.stringify(data.header)}}">
|
||||
<span class="screen-reader-text"><?php _e( 'Set image' ); ?></span>
|
||||
<img src="{{{data.header.thumbnail_url}}}" alt="{{{data.header.alt_text || data.header.description}}}">
|
||||
<img src="{{{data.header.thumbnail_url}}}" alt="{{{data.header.alt_text || data.header.description}}}" />
|
||||
</button>
|
||||
|
||||
<# if ( data.type === 'uploaded' ) { #>
|
||||
|
Loading…
Reference in New Issue
Block a user