wp_title shouldn't use category_name if cat is also specified. Props majelbstoat. fixes #3902

git-svn-id: https://develop.svn.wordpress.org/trunk@4976 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-03-07 01:29:07 +00:00
parent 9638e56c57
commit 67f01fb970
1 changed files with 1 additions and 2 deletions

View File

@ -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] )