Allow for custom user table. If rewriting user functions need to include from wp-config

git-svn-id: http://svn.automattic.com/wordpress/trunk@2205 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2005-02-02 10:51:42 +00:00
parent 4bbac5be9b
commit 2765f58e3e
1 changed files with 3 additions and 1 deletions

View File

@ -45,6 +45,9 @@ $wpdb->linkcategories = $table_prefix . 'linkcategories';
$wpdb->options = $table_prefix . 'options';
$wpdb->postmeta = $table_prefix . 'postmeta';
if ( defined('CUSTOM_USER_TABLE') )
$wpdb->users = CUSTOM_USER_TABLE;
// We're going to need to keep this around for a few months even though we're not using it internally
$tableposts = $wpdb->posts;
@ -89,7 +92,6 @@ endif;
require (ABSPATH . WPINC . '/vars.php');
// Check for hacks file if the option is enabled
if (get_settings('hack_file')) {
if (file_exists(ABSPATH . '/my-hacks.php'))