Make WordPress Core

Changeset 14955


Ignore:
Timestamp:
05/26/2010 08:06:54 PM (14 years ago)
Author:
markjaquith
Message:

Do not display category blurb for post types that do not support that taxonomy.

File:
1 edited

Legend:

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

    r14907 r14955  
    463463    if ( $tag_list ) {
    464464        $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' );
     465    } elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) {
     466        $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' );
    465467    } else {
    466         $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' );
     468        $posted_in = __( 'Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' );
    467469    }
    468470    // Prints the string, replacing the placeholders.
Note: See TracChangeset for help on using the changeset viewer.