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:
parent
1089c39b55
commit
05c8a88de8
|
@ -1721,7 +1721,7 @@ function update_post_caches($posts) {
|
||||||
|
|
||||||
if (!empty($dogs)) {
|
if (!empty($dogs)) {
|
||||||
foreach ($dogs as $catt) {
|
foreach ($dogs as $catt) {
|
||||||
$category_cache[$catt->ID][] = $catt;
|
$category_cache[$catt->ID][$catt->category_id] = $catt;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue