From d6cb8a094235ccd07e4086ff230ff460d08cb959 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Tue, 1 Nov 2005 18:22:30 +0000 Subject: [PATCH] Missing global, fix from airport. :) git-svn-id: https://develop.svn.wordpress.org/trunk@2978 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/template-functions-category.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/template-functions-category.php b/wp-includes/template-functions-category.php index dd1dc1d1b2..8193e3e9a8 100644 --- a/wp-includes/template-functions-category.php +++ b/wp-includes/template-functions-category.php @@ -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; } -?> \ No newline at end of file +?>