Make WordPress Core


Ignore:
Timestamp:
11/08/2013 05:53:48 AM (11 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: fix case of featured posts has_tag() check that was adding an empty footer element. See #25868, props iamtakashi.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/content-gallery.php

    r26036 r26048  
    5454    </div><!-- .entry-content -->
    5555
    56     <?php if ( has_tag() ) : ?>
    57     <footer class="entry-meta">
    58         <span class="tag-links">
    59             <?php echo get_the_tag_list(); ?>
    60         </span>
    61     </footer><!-- .entry-meta -->
    62     <?php endif; ?>
     56    <?php
     57        if ( has_tag() )
     58            echo get_the_tag_list( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' );
     59    ?>
    6360</article><!-- #post-## -->
Note: See TracChangeset for help on using the changeset viewer.