From 05c8a88de8884ad2991e345fee02aa3a8e9a3623 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 10 Nov 2004 00:21:24 +0000 Subject: [PATCH] Avoid polluting the category cache with duplicate category lists when using multiple post loops. http://wordpress.org/support/6/15213. Fix from Owen Winkler. git-svn-id: https://develop.svn.wordpress.org/trunk@1849 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 8c5299850a..a937d8bac5 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1721,7 +1721,7 @@ function update_post_caches($posts) { if (!empty($dogs)) { foreach ($dogs as $catt) { - $category_cache[$catt->ID][] = $catt; + $category_cache[$catt->ID][$catt->category_id] = $catt; } }