WordPress.org

Make WordPress Core

Changeset 48834


Ignore:
Timestamp:
08/20/2020 01:11:36 PM (13 months ago)
Author:
SergeyBiryukov
Message:

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.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r48782 r48834  
    42744274            <li class="notice notice-{{ data.type || 'info' }} {{ data.containerClasses || '' }}" data-code="{{ data.code }}" data-type="{{ data.type }}">
    42754275                <div class="notification-message customize-changeset-locked-message">
    4276                     <img class="customize-changeset-locked-avatar" src="{{ data.lockUser.avatar }}" alt="{{ data.lockUser.name }}">
     4276                    <img class="customize-changeset-locked-avatar" src="{{ data.lockUser.avatar }}" alt="{{ data.lockUser.name }}" />
    42774277                    <p class="currently-editing">
    42784278                        <# if ( data.message ) { #>
  • trunk/src/wp-includes/customize/class-wp-customize-header-image-control.php

    r45932 r48834  
    134134                data-customize-header-image-data="{{JSON.stringify(data.header)}}">
    135135                <span class="screen-reader-text"><?php _e( 'Set image' ); ?></span>
    136                 <img src="{{{data.header.thumbnail_url}}}" alt="{{{data.header.alt_text || data.header.description}}}">
     136                <img src="{{{data.header.thumbnail_url}}}" alt="{{{data.header.alt_text || data.header.description}}}" />
    137137            </button>
    138138
Note: See TracChangeset for help on using the changeset viewer.