Bundled themes: Add an alt attribute with the site title for header images linked to the home page.
props rianrietveld. fixes #15926. Built from https://develop.svn.wordpress.org/trunk@29842 git-svn-id: http://core.svn.wordpress.org/trunk@29606 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5e5ba9325d
commit
894c7605a5
|
@ -46,7 +46,7 @@
|
|||
</nav><!-- #site-navigation -->
|
||||
|
||||
<?php if ( get_header_image() ) : ?>
|
||||
<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>
|
||||
<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>
|
||||
<?php endif; ?>
|
||||
</header><!-- #masthead -->
|
||||
|
||||
|
|
Loading…
Reference in New Issue