Ticket #5110: in_category2.diff
File in_category2.diff, 591 bytes (added by , 16 years ago) |
---|
-
wp-includes/category-template.php
170 170 function in_category( $category ) { // Check if the current post is in the given category 171 171 global $post, $blog_id; 172 172 173 $category = abs(intval($category)); 174 if ( 0 == $category ) 175 return false; 176 173 177 $categories = get_object_term_cache($post->ID, 'category'); 174 178 if ( false === $categories ) 175 179 $categories = wp_get_object_terms($post->ID, 'category');