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
This commit is contained in:
Ryan Boren 2004-11-10 00:21:24 +00:00
parent 1089c39b55
commit 05c8a88de8
1 changed files with 1 additions and 1 deletions

View File

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