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:
parent
9638e56c57
commit
67f01fb970
@ -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] )
|
||||||
|
Loading…
Reference in New Issue
Block a user