WordPress.org

Make WordPress Core

Ticket #30144: 30144.patch

File 30144.patch, 773 bytes (added by joedolson, 6 years ago)

aria-hidden

  • wp-content/themes/twentyfourteen/inc/template-tags.php

     
    189189
    190190        <?php else : ?>
    191191
    192         <a class="post-thumbnail" href="<?php the_permalink(); ?>">
     192        <a class="post-thumbnail" href="<?php the_permalink(); ?>" aria-hidden="true">
    193193        <?php
    194194                if ( ( ! is_active_sidebar( 'sidebar-2' ) || is_page_template( 'page-templates/full-width.php' ) ) ) {
    195195                        the_post_thumbnail( 'twentyfourteen-full-width' );
    196196                } else {
    197                         the_post_thumbnail();
     197                        the_post_thumbnail( 'post-thumbnail', array( 'alt'=>get_the_title() ) );
    198198                }
    199199        ?>
    200200        </a>