WordPress.org

Make WordPress Core

Changeset 14552


Ignore:
Timestamp:
05/10/10 21:24:32 (4 years ago)
Author:
nbachiyski
Message:

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

Location:
trunk/wp-content/themes/twentyten
Files:
2 edited

Legend:

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

    r14541 r14552  
    438438 
    439439function twentyten_posted_in() { 
    440     $tag_list = get_the_tag_list(); 
     440    $tag_list = get_the_tag_list( '', ', ', '' ); 
    441441    if ( $tag_list ) { 
    442442        $utility_text = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' ); 
  • 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.