git-svn-id: https://develop.svn.wordpress.org/trunk@5872 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-08-15 21:54:02 +00:00
parent 1e61bd9879
commit 3fabbf07a6

View File

@ -160,7 +160,7 @@ function in_category( $category ) { // Check if the current post is in the given
$categories = get_object_term_cache($post->ID, 'category');
if ( false === $categories )
$categories = get_object_terms($post->ID, 'category');
$categories = wp_get_object_terms($post->ID, 'category');
if(array_key_exists($category, $categories))
return true;
else