Make WordPress Core

Changeset 4976


Ignore:
Timestamp:
03/07/2007 01:29:07 AM (18 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r4953 r4976  
    166166            if ( !stristr($cat,'-') )
    167167                $title = apply_filters('single_cat_title', get_the_category_by_ID($cat));
    168     }
    169     if ( !empty($category_name) ) {
     168    } elseif ( !empty($category_name) ) {
    170169        if ( stristr($category_name,'/') ) {
    171170                $category_name = explode('/',$category_name);
Note: See TracChangeset for help on using the changeset viewer.