Changeset 7904
- Timestamp:
- 05/07/2008 07:12:44 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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');
Note: See TracChangeset
for help on using the changeset viewer.