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:
parent
9f893ae091
commit
c10118addf
|
@ -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