diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-10-09 11:39:17 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-10-09 11:39:17 +0000 |
commit | 75e0ccc3a64e164d036da4f71f458520ddea3b24 (patch) | |
tree | 94f00db692e25c95030f7984c27178e1bd7e1bcd /wp-includes/category-template.php | |
parent | ca036ad95fc44c318275ab539a52f1eb6fddf060 (diff) | |
download | wordpress-mu-75e0ccc3a64e164d036da4f71f458520ddea3b24.tar.gz wordpress-mu-75e0ccc3a64e164d036da4f71f458520ddea3b24.tar.xz wordpress-mu-75e0ccc3a64e164d036da4f71f458520ddea3b24.zip |
WP Merge - needs testing.
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@797 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/category-template.php')
-rw-r--r-- | wp-includes/category-template.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/wp-includes/category-template.php b/wp-includes/category-template.php index e2a8c69..c15a4f8 100644 --- a/wp-includes/category-template.php +++ b/wp-includes/category-template.php @@ -60,15 +60,15 @@ function get_category_parents($id, $link = FALSE, $separator = '/', $nicename = } function get_the_category($id = false) { -global $post, $category_cache; +global $post, $category_cache, $blog_id; if ( !$id ) $id = $post->ID; - if ( !isset($category_cache[$id]) ) + if ( !isset($category_cache[$blog_id][$id]) ) update_post_category_cache($id); - $categories = $category_cache[$id]; + $categories = $category_cache[$blog_id][$id]; if ( !empty($categories) ) sort($categories); @@ -140,9 +140,9 @@ function get_the_category_list($separator = '', $parents='') { } function in_category($category) { // Check if the current post is in the given category - global $category_cache, $post; + global $category_cache, $post, $blog_id; - if ( isset( $category_cache[$post->ID][$category] ) ) + if ( isset( $category_cache[$blog_id][$post->ID][$category] ) ) return true; else return false; |