From 505c0ad074e81542a1d21a0d11185faa37ac8834 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Mon, 26 Mar 2007 17:25:15 +0000 Subject: [PATCH] Don't show tags on the category page. git-svn-id: https://develop.svn.wordpress.org/trunk@5112 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/category.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-includes/category.php b/wp-includes/category.php index 2ba3d30be9..d7763741f5 100644 --- a/wp-includes/category.php +++ b/wp-includes/category.php @@ -77,8 +77,12 @@ function &get_categories($args = '') { $where .= ' AND link_count > 0'; else $where .= ' AND category_count > 0'; + } else { + $where .= ' AND ( tag_count = 0 OR ( tag_count != 0 AND ( link_count > 0 OR category_count > 0 ) ) ) '; } + + if ( !empty($number) ) $number = 'LIMIT ' . $number; else