Missing global, fix from airport. :)

git-svn-id: https://develop.svn.wordpress.org/trunk@2978 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2005-11-01 18:22:30 +00:00
parent cdb58724d2
commit d6cb8a0942
1 changed files with 2 additions and 2 deletions

View File

@ -415,7 +415,7 @@ function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_orde
}
function in_category($category) { // Check if the current post is in the given category
global $category_cache;
global $category_cache, $post;
if ( isset( $category_cache[$post->ID][$category] ) )
return true;
@ -423,4 +423,4 @@ function in_category($category) { // Check if the current post is in the given c
return false;
}
?>
?>