Twenty Fifteen: accessible alt text for post thumbnail links.
Props joedolson, fixes #30076. Built from https://develop.svn.wordpress.org/trunk@30231 git-svn-id: http://core.svn.wordpress.org/trunk@30231 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
17dbe26df9
commit
b519db9ffa
|
@ -193,8 +193,10 @@ function twentyfifteen_post_thumbnail() {
|
||||||
|
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
|
|
||||||
<a class="post-thumbnail" href="<?php the_permalink(); ?>">
|
<a class="post-thumbnail" href="<?php the_permalink(); ?>" aria-hidden="true">
|
||||||
<?php the_post_thumbnail(); ?>
|
<?php
|
||||||
|
the_post_thumbnail( 'post-thumbnail', array( 'alt'=>get_the_title() ) );
|
||||||
|
?>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<?php endif; // End is_singular()
|
<?php endif; // End is_singular()
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.1-alpha-30230';
|
$wp_version = '4.1-alpha-30231';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue