forked from mirror/_s
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:
commit
9274f322d0
|
@ -132,7 +132,7 @@ if ( ! function_exists( '_s_post_thumbnail' ) ) :
|
||||||
|
|
||||||
<?php else : ?>
|
<?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
|
<?php
|
||||||
the_post_thumbnail( 'post-thumbnail', array(
|
the_post_thumbnail( 'post-thumbnail', array(
|
||||||
'alt' => the_title_attribute( array(
|
'alt' => the_title_attribute( array(
|
||||||
|
|
Reference in New Issue