WordPress.org

Make WordPress Core

Ticket #30076: 30076.4.patch

File 30076.4.patch, 640 bytes (added by joedolson, 6 years ago)

forgot fallback in prior patch

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

     
    271271
    272272        <?php else : ?>
    273273
    274         <a class="post-thumbnail" href="<?php the_permalink(); ?>">
    275                 <?php the_post_thumbnail(); ?>
     274        <a class="post-thumbnail" href="<?php the_permalink(); ?>" aria-hidden="true">
     275                <?php
     276                        the_post_thumbnail( 'post-thumbnail', array( 'alt'=>get_the_title() ) );
     277                ?>
    276278        </a>
    277279
    278280        <?php endif; // End is_singular()