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
This commit is contained in:
ryan 2007-03-07 01:29:07 +00:00
parent fdfe3a7e34
commit be2a43cf7c
1 changed files with 1 additions and 2 deletions

View File

@ -165,8 +165,7 @@ function wp_title($sep = '»', $display = true) {
// category exclusion // category exclusion
if ( !stristr($cat,'-') ) if ( !stristr($cat,'-') )
$title = apply_filters('single_cat_title', get_the_category_by_ID($cat)); $title = apply_filters('single_cat_title', get_the_category_by_ID($cat));
} } elseif ( !empty($category_name) ) {
if ( !empty($category_name) ) {
if ( stristr($category_name,'/') ) { if ( stristr($category_name,'/') ) {
$category_name = explode('/',$category_name); $category_name = explode('/',$category_name);
if ( $category_name[count($category_name)-1] ) if ( $category_name[count($category_name)-1] )