From 56e058d6d820ca743ff857cc3baf3b84592534db Mon Sep 17 00:00:00 2001 From: matt Date: Tue, 1 Nov 2005 18:22:30 +0000 Subject: [PATCH] Missing global, fix from airport. :) git-svn-id: http://svn.automattic.com/wordpress/trunk@2978 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 +?>