From fc7bcd0e63c3d1b0c41f9c9015931842eb27c6da Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Wed, 26 May 2010 20:06:54 +0000 Subject: [PATCH] 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 --- wp-content/themes/twentyten/functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/twentyten/functions.php b/wp-content/themes/twentyten/functions.php index e6a01a1a23..6a4a0dcbe5 100644 --- a/wp-content/themes/twentyten/functions.php +++ b/wp-content/themes/twentyten/functions.php @@ -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 permalink.', 'twentyten' ); - } else { + } elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) { $posted_in = __( 'This entry was posted in %1$s. Bookmark the permalink.', 'twentyten' ); + } else { + $posted_in = __( 'Bookmark the permalink.', 'twentyten' ); } // Prints the string, replacing the placeholders. printf(