Changeset 7904
- Timestamp:
- 05/07/08 19:12:44 (3 months ago)
- Files:
-
- trunk/wp-includes/category-template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-includes/category-template.php
r7903 r7904 186 186 return false; 187 187 188 $cat_ID = get_cat_ID($category); 189 if ( $cat_ID ) 190 $category = $cat_ID; 188 // If category is not an int, check to see if it's a name 189 if ( ! is_int($category) ) { 190 $cat_ID = get_cat_ID($category); 191 if ( $cat_ID ) 192 $category = $cat_ID; 193 } 191 194 192 195 $categories = get_object_term_cache($post->ID, 'category');
