Changeset 7505
- Timestamp:
- 03/24/08 20:39:05 (6 months ago)
- Files:
-
- trunk/wp-includes/category-template.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-includes/category-template.php
r7472 r7505 183 183 global $post; 184 184 185 if ( empty($category) ) 186 return false; 187 185 188 $cat_ID = get_cat_ID($category); 186 if ( 0 != $cat_ID)189 if ( $cat_ID ) 187 190 $category = $cat_ID; 188 191 … … 190 193 if ( false === $categories ) 191 194 $categories = wp_get_object_terms($post->ID, 'category'); 192 if (array_key_exists($category, $categories))195 if ( array_key_exists($category, $categories) ) 193 196 return true; 194 197 else
