Changeset 5693 for trunk/wp-includes/category-template.php
- Timestamp:
- 06/13/2007 12:16:33 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/category-template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/category-template.php
r5660 r5693 156 156 } 157 157 158 function in_category( $category) { // Check if the current post is in the given category159 global $ category_cache, $post, $blog_id;160 161 if ( isset( $ category_cache[$blog_id][$post->ID][$category] ) )158 function in_category( $category ) { // Check if the current post is in the given category 159 global $object_term_cache, $post, $blog_id; 160 161 if ( isset( $object_term_cache[$blog_id][$post->ID]['category'][$category] ) ) 162 162 return true; 163 163 else
Note: See TracChangeset
for help on using the changeset viewer.