Make WordPress Core


Ignore:
Timestamp:
05/10/2010 09:24:32 PM (14 years ago)
Author:
nbachiyski
Message:

Do not cut the Tagged <tags> phrase in half. Fixes #13198

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyten/loop.php

    r14541 r14552  
    120120                </span>
    121121                <span class="meta-sep">|</span>
    122                 <?php the_tags( '<span class="tag-links"><span class="entry-utility-prep entry-utility-prep-tag-links">' . __( 'Tagged ', 'twentyten' ) . '</span>', ', ', '<span class="meta-sep">|</span>' ); ?>
     122                <?php
     123                    $tags_list = get_the_tag_list( '', ', ' );
     124                    if ( $tags_list ):
     125                ?>
     126                    <span class="tag-links">
     127                        <span class="entry-utility-prep entry-utility-prep-tag-links"><?php printf( __('Tagged %s', 'twentyten'), '</span> ' . $tags_list ); ?>
     128                    </span>
     129                    <span class="meta-sep">|</span>
     130                <?php endif; ?>
    123131                <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
    124132                <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>
Note: See TracChangeset for help on using the changeset viewer.