Make WordPress Core

Changeset 1849


Ignore:
Timestamp:
11/10/2004 12:21:24 AM (21 years ago)
Author:
rboren
Message:

Avoid polluting the category cache with duplicate category lists when using multiple post loops. http://wordpress.org/support/6/15213. Fix from Owen Winkler.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r1847 r1849  
    17221722    if (!empty($dogs)) {
    17231723        foreach ($dogs as $catt) {
    1724             $category_cache[$catt->ID][] = $catt;
     1724                    $category_cache[$catt->ID][$catt->category_id] = $catt;
    17251725        }
    17261726    }
Note: See TracChangeset for help on using the changeset viewer.