From be2a43cf7c71062844022ce07e3e8579687bafe7 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 7 Mar 2007 01:29:07 +0000 Subject: [PATCH] wp_title shouldn't use category_name if cat is also specified. Props majelbstoat. fixes #3902 git-svn-id: http://svn.automattic.com/wordpress/trunk@4976 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/general-template.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index f88542b1da..64a94c8e70 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -165,8 +165,7 @@ function wp_title($sep = '»', $display = true) { // category exclusion if ( !stristr($cat,'-') ) $title = apply_filters('single_cat_title', get_the_category_by_ID($cat)); - } - if ( !empty($category_name) ) { + } elseif ( !empty($category_name) ) { if ( stristr($category_name,'/') ) { $category_name = explode('/',$category_name); if ( $category_name[count($category_name)-1] )