Ticket #14260: 14260.diff
| File 14260.diff, 1.3 KB (added by markmcwilliams, 3 years ago) |
|---|
-
functions.php
520 520 * @since Twenty Ten 1.0 521 521 */ 522 522 function twentyten_posted_in() { 523 // Retrieves tag list of current post, separated by commas. 523 // Retrieves category and tag lists of current post, separated by commas. 524 $cat_list = get_the_category_list( ', ' ); 524 525 $tag_list = get_the_tag_list( '', ', ' ); 525 if ( $ tag_list ) {526 if ( $cat_list && $tag_list ) { 526 527 $posted_in = __( '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' ); 528 } elseif ( $tag_list ) { 529 $posted_in = __( 'This entry was tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' ); 527 530 } elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) { 528 531 $posted_in = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' ); 529 532 } else { … … 532 535 // Prints the string, replacing the placeholders. 533 536 printf( 534 537 $posted_in, 535 get_the_category_list( ', ' ),538 $cat_list, 536 539 $tag_list, 537 540 get_permalink(), 538 541 the_title_attribute( 'echo=0' )
