From fa77eca47307ded258c176f267b87affe1ff0c0e Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Wed, 2 Feb 2005 10:51:42 +0000 Subject: [PATCH] Allow for custom user table. If rewriting user functions need to include from wp-config git-svn-id: https://develop.svn.wordpress.org/trunk@2205 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-settings.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-settings.php b/wp-settings.php index 09b814846d..4c2870bbd0 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -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'))