Merge pull request #1255 from Automattic/add-neg-tabindex-to-featured-images

Add 'tabindex=-1' to the featured image markup, to improve accessibil…
This commit is contained in:
alaczek 2018-05-29 11:25:35 +10:00 committed by GitHub
commit 9274f322d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ if ( ! function_exists( '_s_post_thumbnail' ) ) :
<?php else : ?>
<a class="post-thumbnail" href="<?php the_permalink(); ?>" aria-hidden="true">
<a class="post-thumbnail" href="<?php the_permalink(); ?>" aria-hidden="true" tabindex="-1">
<?php
the_post_thumbnail( 'post-thumbnail', array(
'alt' => the_title_attribute( array(