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/twentyeleven/header.php

    r28341 r29842  
    112112                        }
    113113                        ?>
    114                     <img src="<?php header_image(); ?>" width="<?php echo $header_image_width; ?>" height="<?php echo $header_image_height; ?>" alt="" />
     114                    <img src="<?php header_image(); ?>" width="<?php echo $header_image_width; ?>" height="<?php echo $header_image_height; ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" />
    115115                <?php endif; // end check for featured image or standard header ?>
    116116            </a>
Note: See TracChangeset for help on using the changeset viewer.