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; } }