WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/06/2014 12:43:55 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Bundled themes: Add an alt attribute with the site title for header images linked to the home page.

props rianrietveld.
fixes #15926.

File:
1 edited

Legend:

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

    r28341 r29842  
    3636    <div id="site-header">
    3737        <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
    38             <img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="">
     38            <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' ) ); ?>">
    3939        </a>
    4040    </div>
Note: See TracChangeset for help on using the changeset viewer.