Changeset 814
- Timestamp:
- 01/31/2004 12:03:51 AM (22 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
wp-blog-header.php (modified) (3 diffs)
-
wp-includes/template-functions-general.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-blog-header.php
r808 r814 152 152 $cat = addslashes_gpc($cat); 153 153 if (stristr($cat,'-')) { 154 // Note: if we have a negative, we ignore all the positives. It must 155 // always mean 'everything /except/ this one'. We should be able to do 156 // multiple negatives but we don't :-( 154 157 $eq = '!='; 155 158 $andor = 'AND'; … … 169 172 } 170 173 $whichcat .= ')'; 174 if ($eq == '!=') { 175 $cat = '-'.$cat; //put back the knowledge that we are excluding a category. 176 } 171 177 } 172 178 … … 375 381 header('Location: ' . get_permalink($posts[0]->ID)); 376 382 } 377 }378 } 383 } 384 } // end if posts. 379 385 ?> -
trunk/wp-includes/template-functions-general.php
r801 r814 66 66 // If there's a category 67 67 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 } 69 71 } 70 72 if (!empty($category_name)) {
Note: See TracChangeset
for help on using the changeset viewer.