Make WordPress Core

Changeset 26048


Ignore:
Timestamp:
11/08/2013 05:53:48 AM (10 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.

Location:
trunk/src/wp-content/themes/twentyfourteen
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/content-aside.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-## -->
  • trunk/src/wp-content/themes/twentyfourteen/content-audio.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-## -->
  • 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-## -->
  • trunk/src/wp-content/themes/twentyfourteen/content-image.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-## -->
  • trunk/src/wp-content/themes/twentyfourteen/content-link.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-## -->
  • trunk/src/wp-content/themes/twentyfourteen/content-quote.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-## -->
  • trunk/src/wp-content/themes/twentyfourteen/content-video.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-## -->
  • trunk/src/wp-content/themes/twentyfourteen/content.php

    r26036 r26048  
    6363    <?php endif; ?>
    6464
    65     <?php if ( has_tag() ) : ?>
    66     <footer class="entry-meta">
    67         <span class="tag-links">
    68             <?php echo get_the_tag_list(); ?>
    69         </span>
    70     </footer><!-- .entry-meta -->
    71     <?php endif; ?>
     65    <?php
     66        if ( has_tag() )
     67            echo get_the_tag_list( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' );
     68    ?>
    7269</article><!-- #post-## -->
  • trunk/src/wp-content/themes/twentyfourteen/style.css

    r26044 r26048  
    11391139}
    11401140
    1141 .site-content footer.entry-meta:empty {
    1142     margin: 0;
    1143 }
    1144 
    1145 
    11461141/* Tag links style */
    11471142
Note: See TracChangeset for help on using the changeset viewer.