add WP_DEBUG define check in DB code, props dxjones, see #12041
git-svn-id: https://develop.svn.wordpress.org/trunk@12922 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e1a54f07b8
commit
f4775300f1
@ -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() ) {
|
||||
|
Loading…
Reference in New Issue
Block a user