From 4ab768959d9cb330e11192252097c2f555820a96 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Sat, 15 May 2010 09:59:15 +0000 Subject: [PATCH] Do not show dummy default category output when calling the_category on a post_type that does not support the category taxonomy (like pages). Fix TwentyTen theme to not display wrapping text if there are no categories. fixes #10333 git-svn-id: http://svn.automattic.com/wordpress/trunk@14660 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyten/loop.php | 13 ++++++------- wp-includes/category-template.php | 3 +++ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/wp-content/themes/twentyten/loop.php b/wp-content/themes/twentyten/loop.php index b47a8fb6ca..3850eb274c 100644 --- a/wp-content/themes/twentyten/loop.php +++ b/wp-content/themes/twentyten/loop.php @@ -112,13 +112,12 @@
- - - '.get_the_category_list( ', ' ) ); - ?> - - | + + + '.get_the_category_list( ', ' ) ); ?> + + | +