From c10118addfafb035d65512d4d4a98692e68b1a7a Mon Sep 17 00:00:00 2001 From: rboren 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: http://svn.automattic.com/wordpress/trunk@1849 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 8c5299850..a937d8bac 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; } }