mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 08:11:52 +01:00
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:
parent
8e547a3677
commit
f7e5557f6e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user