Twenty Fifteen: accessible alt text for post thumbnail links.

Props joedolson, fixes #30076.


Built from https://develop.svn.wordpress.org/trunk@30231


git-svn-id: http://core.svn.wordpress.org/trunk@30231 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Ian Stewart 2014-11-04 18:57:27 +00:00
parent 17dbe26df9
commit b519db9ffa
2 changed files with 5 additions and 3 deletions

View File

@ -193,8 +193,10 @@ function twentyfifteen_post_thumbnail() {
<?php else : ?>
<a class="post-thumbnail" href="<?php the_permalink(); ?>">
<?php the_post_thumbnail(); ?>
<a class="post-thumbnail" href="<?php the_permalink(); ?>" aria-hidden="true">
<?php
the_post_thumbnail( 'post-thumbnail', array( 'alt'=>get_the_title() ) );
?>
</a>
<?php endif; // End is_singular()

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.1-alpha-30230';
$wp_version = '4.1-alpha-30231';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.