Twenty Fifteen: accessible alt text for post thumbnail links.

Props joedolson, fixes #30076.



git-svn-id: https://develop.svn.wordpress.org/trunk@30231 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ian Stewart 2014-11-04 18:56:10 +00:00
parent 47c5c58e47
commit 94db67ffa7

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()