Do not display category blurb for post types that do not support that taxonomy.
git-svn-id: https://develop.svn.wordpress.org/trunk@14955 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
10ceba3686
commit
fc7bcd0e63
@ -462,8 +462,10 @@ function twentyten_posted_in() {
|
||||
$tag_list = get_the_tag_list( '', ', ' );
|
||||
if ( $tag_list ) {
|
||||
$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' );
|
||||
} else {
|
||||
} elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) {
|
||||
$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' );
|
||||
} else {
|
||||
$posted_in = __( 'Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' );
|
||||
}
|
||||
// Prints the string, replacing the placeholders.
|
||||
printf(
|
||||
|
Loading…
Reference in New Issue
Block a user