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:
parent
47c5c58e47
commit
94db67ffa7
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user