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

git-svn-id: http://svn.automattic.com/wordpress/trunk@5544 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-05-25 09:45:55 +00:00
parent 8e547a3677
commit f7e5557f6e
1 changed files with 1 additions and 10 deletions

View File

@ -186,16 +186,7 @@ class WP_Object_Cache {
}
function load_group_from_db($group) {
global $wpdb;
if ('category' == $group) {
$this->cache['category'] = array ();
if ($dogs = $wpdb->get_results("SELECT * FROM $wpdb->categories")) {
foreach ($dogs as $catt)
$this->cache['category'][$catt->cat_ID] = $catt;
}
}
return;
}
function make_group_dir($group, $perms) {