Make WordPress Core


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

Bundled Themes: Add / character to <img> tags.

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].

Props shital-patel, akabarikalpesh.
See #53870.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/inc/custom-header.php

    r48782 r51541  
    145145    <div id="headimg">
    146146        <?php if ( get_header_image() ) : ?>
    147         <img src="<?php header_image(); ?>" alt="">
     147        <img src="<?php header_image(); ?>" alt="" />
    148148        <?php endif; ?>
    149149        <h1 class="displaying-header-text"><a id="name" style="<?php echo esc_attr( sprintf( 'color: #%s;', get_header_textcolor() ) ); ?>" onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>" tabindex="-1"><?php bloginfo( 'name' ); ?></a></h1>
Note: See TracChangeset for help on using the changeset viewer.