mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 01:00:04 +00:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user