Make WordPress Core


Ignore:
Timestamp:
10/06/2014 12:43:55 PM (10 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/twentytwelve/header.php

    r29095 r29842  
    4747
    4848        <?php if ( get_header_image() ) : ?>
    49         <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php header_image(); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" /></a>
     49        <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php header_image(); ?>" class="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' ) ); ?>" /></a>
    5050        <?php endif; ?>
    5151    </header><!-- #masthead -->
Note: See TracChangeset for help on using the changeset viewer.