WordPress.org

Make WordPress Core

Ticket #30076: 30076.3.patch

File 30076.3.patch, 589 bytes (added by joedolson, 6 years ago)

Alternate solution using aria-hidden to reduce verbosity

  • 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();
     277                ?>
    276278        </a>
    277279
    278280        <?php endif; // End is_singular()