mirror of
https://github.com/PostgreSQL-For-Wordpress/postgresql-for-wordpress.git
synced 2025-07-30 17:57:13 +02:00
Only instantiate when DB_USER is defined
During setup, before wp-content.php is created and DB_USER is defined, there is no way to instantiate it meaningfully. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
This commit is contained in:
@ -34,5 +34,5 @@ define( 'WP_USE_EXT_MYSQL', true);
|
||||
eval( str_replace( array_keys($replaces), array_values($replaces), file_get_contents(ABSPATH.'/wp-includes/wp-db.php')));
|
||||
|
||||
// Create wpdb object if not already done
|
||||
if (! isset($wpdb))
|
||||
if (! isset($wpdb) && defined('DB_USER'))
|
||||
$wpdb = new wpdb2( DB_USER, DB_PASSWORD, DB_NAME, DB_HOST );
|
||||
|
Reference in New Issue
Block a user