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
This commit is contained in:
rboren 2004-11-10 00:21:24 +00:00
parent 9f893ae091
commit c10118addf
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;
}
}