Make WordPress Core


Ignore:
Timestamp:
01/31/2004 12:03:51 AM (22 years ago)
Author:
mikelittle
Message:

Fixed category name bug. "When excluding a category by using '$cat = "-4";' in index.php, the name of the excluded cat is added to the page title."

File:
1 edited

Legend:

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

    r801 r814  
    6666    // If there's a category
    6767    if(!empty($cat)) {
    68         $title = stripslashes(get_the_category_by_ID($cat));
     68        if (!stristr($cat,'-')) { // category excluded
     69            $title = stripslashes(get_the_category_by_ID($cat));
     70        }
    6971    }
    7072    if (!empty($category_name)) {
Note: See TracChangeset for help on using the changeset viewer.