WordPress.org

Make WordPress Core

Ticket #14260: 14260.diff

File 14260.diff, 1.3 KB (added by markmcwilliams, 8 years ago)

typo in the other patch

  • functions.php

     
    520520 * @since Twenty Ten 1.0
    521521 */
    522522function 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( ', ' );
    524525        $tag_list = get_the_tag_list( '', ', ' );
    525         if ( $tag_list ) {
     526        if ( $cat_list && $tag_list ) {
    526527                $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' );
    527530        } elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) {
    528531                $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' );
    529532        } else {
     
    532535        // Prints the string, replacing the placeholders.
    533536        printf(
    534537                $posted_in,
    535                 get_the_category_list( ', ' ),
     538                $cat_list,
    536539                $tag_list,
    537540                get_permalink(),
    538541                the_title_attribute( 'echo=0' )