Commit 8b205f4e authored by ryan's avatar ryan

Typo fix

git-svn-id: 1a063a9b-81f0-0310-95a4-ce76da25c4cd
parent 951a41ad
......@@ -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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment