diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index e73d08941..bfd6d7dc0 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -367,7 +367,7 @@ class wpdb { function __construct($dbuser, $dbpassword, $dbname, $dbhost) { register_shutdown_function(array(&$this, "__destruct")); - if ( WP_DEBUG ) + if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) $this->show_errors(); if ( is_multisite() ) {