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:
parent
f1a0a595d7
commit
6bf777e1d9
|
@ -186,16 +186,7 @@ class WP_Object_Cache {
|
||||||
}
|
}
|
||||||
|
|
||||||
function load_group_from_db($group) {
|
function load_group_from_db($group) {
|
||||||
global $wpdb;
|
return;
|
||||||
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function make_group_dir($group, $perms) {
|
function make_group_dir($group, $perms) {
|
||||||
|
|
Loading…
Reference in New Issue