Make WordPress Core


Ignore:
Timestamp:
08/04/2021 02:22:37 PM (5 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/header.php

    r48290 r51541  
    3737    <div id="site-header">
    3838        <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
    39             <img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>">
     39            <img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" />
    4040        </a>
    4141    </div>
Note: See TracChangeset for help on using the changeset viewer.