git-svn-id: http://svn.automattic.com/wordpress/trunk@5872 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-08-15 21:54:02 +00:00
parent 951a41ad1e
commit 8b205f4e87
1 changed files with 1 additions and 1 deletions

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'); $categories = get_object_term_cache($post->ID, 'category');
if ( false === $categories ) if ( false === $categories )
$categories = get_object_terms($post->ID, 'category'); $categories = wp_get_object_terms($post->ID, 'category');
if(array_key_exists($category, $categories)) if(array_key_exists($category, $categories))
return true; return true;
else else