Missing global, fix from airport. :)

git-svn-id: http://svn.automattic.com/wordpress/trunk@2978 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2005-11-01 18:22:30 +00:00
parent ba2ba0e252
commit 56e058d6d8
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;