Changeset 4524 for trunk/wp-includes/category-template.php
- Timestamp:
- 11/23/2006 08:39:39 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/category-template.php
r4495 r4524 61 61 62 62 function get_the_category($id = false) { 63 global $post, $category_cache ;63 global $post, $category_cache, $blog_id; 64 64 65 65 if ( !$id ) 66 66 $id = $post->ID; 67 67 68 if ( !isset($category_cache[$ id]) )68 if ( !isset($category_cache[$blog_id][$id]) ) 69 69 update_post_category_cache($id); 70 70 71 $categories = $category_cache[$ id];71 $categories = $category_cache[$blog_id][$id]; 72 72 73 73 if ( !empty($categories) ) … … 141 141 142 142 function in_category($category) { // Check if the current post is in the given category 143 global $category_cache, $post ;144 145 if ( isset( $category_cache[$ post->ID][$category] ) )143 global $category_cache, $post, $blog_id; 144 145 if ( isset( $category_cache[$blog_id][$post->ID][$category] ) ) 146 146 return true; 147 147 else
Note: See TracChangeset
for help on using the changeset viewer.