WordPress.org

Make WordPress Core

Ticket #30144: 30144.2.diff

File 30144.2.diff, 744 bytes (added by hiwhatsup, 6 years ago)

original patch plus formatting fixed.

  • 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>
    201201
    202202        <?php endif; // End is_singular()
    203 }
     203}
     204 No newline at end of file