Make WordPress Core

Changeset 26258


Ignore:
Timestamp:
11/18/2013 10:47:17 PM (11 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: simplify tags output in content templates, props nacin. See #26093.

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

Legend:

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

    r26048 r26258  
    5454    </div><!-- .entry-content -->
    5555
    56     <?php
    57         if ( has_tag() )
    58             echo get_the_tag_list( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' );
    59     ?>
     56    <?php the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?>
    6057</article><!-- #post-## -->
  • trunk/src/wp-content/themes/twentyfourteen/content-audio.php

    r26048 r26258  
    5454    </div><!-- .entry-content -->
    5555
    56     <?php
    57         if ( has_tag() )
    58             echo get_the_tag_list( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' );
    59     ?>
     56    <?php the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?>
    6057</article><!-- #post-## -->
  • trunk/src/wp-content/themes/twentyfourteen/content-gallery.php

    r26048 r26258  
    5454    </div><!-- .entry-content -->
    5555
    56     <?php
    57         if ( has_tag() )
    58             echo get_the_tag_list( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' );
    59     ?>
     56    <?php the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?>
    6057</article><!-- #post-## -->
  • trunk/src/wp-content/themes/twentyfourteen/content-image.php

    r26048 r26258  
    5454    </div><!-- .entry-content -->
    5555
    56     <?php
    57         if ( has_tag() )
    58             echo get_the_tag_list( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' );
    59     ?>
     56    <?php the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?>
    6057</article><!-- #post-## -->
  • trunk/src/wp-content/themes/twentyfourteen/content-link.php

    r26048 r26258  
    5454    </div><!-- .entry-content -->
    5555
    56     <?php
    57         if ( has_tag() )
    58             echo get_the_tag_list( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' );
    59     ?>
     56    <?php the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?>
    6057</article><!-- #post-## -->
  • trunk/src/wp-content/themes/twentyfourteen/content-quote.php

    r26048 r26258  
    5454    </div><!-- .entry-content -->
    5555
    56     <?php
    57         if ( has_tag() )
    58             echo get_the_tag_list( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' );
    59     ?>
     56    <?php the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?>
    6057</article><!-- #post-## -->
  • trunk/src/wp-content/themes/twentyfourteen/content-video.php

    r26048 r26258  
    5454    </div><!-- .entry-content -->
    5555
    56     <?php
    57         if ( has_tag() )
    58             echo get_the_tag_list( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' );
    59     ?>
     56    <?php the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?>
    6057</article><!-- #post-## -->
  • trunk/src/wp-content/themes/twentyfourteen/content.php

    r26048 r26258  
    6363    <?php endif; ?>
    6464
    65     <?php
    66         if ( has_tag() )
    67             echo get_the_tag_list( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' );
    68     ?>
     65    <?php the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?>
    6966</article><!-- #post-## -->
Note: See TracChangeset for help on using the changeset viewer.