Typo fix
git-svn-id: http://svn.automattic.com/wordpress/trunk@5872 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
951a41ad1e
commit
8b205f4e87
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue