Another step toward removing old table vars, this is why we should be careful about naming things! Fixes #2524
git-svn-id: https://develop.svn.wordpress.org/trunk@3951 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f4bd3aa762
commit
8f8f10cc1e
@ -91,18 +91,8 @@ if ( defined('CUSTOM_USER_TABLE') )
|
|||||||
if ( defined('CUSTOM_USER_META_TABLE') )
|
if ( defined('CUSTOM_USER_META_TABLE') )
|
||||||
$wpdb->usermeta = CUSTOM_USER_META_TABLE;
|
$wpdb->usermeta = CUSTOM_USER_META_TABLE;
|
||||||
|
|
||||||
// We're going to need to keep this around for a few months even though we're not using it internally
|
// To be removed in 2.2
|
||||||
|
$tableposts = $tableusers = $tablecategories = $tablepost2cat = $tablecomments = $tablelink2cat = $tablelinks = $tablelinkcategories = $tableoptions = $tablepostmeta = '';
|
||||||
$tableposts = $wpdb->posts;
|
|
||||||
$tableusers = $wpdb->users;
|
|
||||||
$tablecategories = $wpdb->categories;
|
|
||||||
$tablepost2cat = $wpdb->post2cat;
|
|
||||||
$tablecomments = $wpdb->comments;
|
|
||||||
$tablelink2cat = $wpdb->link2cat;
|
|
||||||
$tablelinks = $wpdb->links;
|
|
||||||
$tablelinkcategories = $wpdb->linkcategories;
|
|
||||||
$tableoptions = $wpdb->options;
|
|
||||||
$tablepostmeta = $wpdb->postmeta;
|
|
||||||
|
|
||||||
if ( file_exists(ABSPATH . 'wp-content/object-cache.php') )
|
if ( file_exists(ABSPATH . 'wp-content/object-cache.php') )
|
||||||
require (ABSPATH . 'wp-content/object-cache.php');
|
require (ABSPATH . 'wp-content/object-cache.php');
|
||||||
|
Loading…
Reference in New Issue
Block a user