mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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:
parent
ba2ba0e252
commit
56e058d6d8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user