Typo fix
git-svn-id: https://develop.svn.wordpress.org/trunk@5872 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1e61bd9879
commit
3fabbf07a6
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user