mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 17:20:07 +00:00
Don't load category cache from old tables. see #4189
git-svn-id: https://develop.svn.wordpress.org/trunk@5544 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user