Make WordPress Core


Ignore:
Timestamp:
05/25/2007 09:45:55 AM (19 years ago)
Author:
ryan
Message:

Don't load category cache from old tables. see #4189

File:
1 edited

Legend:

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

    r5255 r5544  
    187187
    188188        function load_group_from_db($group) {
    189                 global $wpdb;
    190 
    191                 if ('category' == $group) {
    192                         $this->cache['category'] = array ();
    193                         if ($dogs = $wpdb->get_results("SELECT * FROM $wpdb->categories")) {
    194                                 foreach ($dogs as $catt)
    195                                         $this->cache['category'][$catt->cat_ID] = $catt;
    196                         }
    197                 }
    198 
     189                return;
    199190        }
    200191
Note: See TracChangeset for help on using the changeset viewer.