From 88a89ebe4438444b88b5ff7f94375d316d284d0c Mon Sep 17 00:00:00 2001 From: wpmuguru Date: Mon, 1 Feb 2010 22:22:21 +0000 Subject: [PATCH] add WP_DEBUG define check in DB code, props dxjones, see #12041 git-svn-id: http://svn.automattic.com/wordpress/trunk@12922 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/wp-db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index e73d08941f..bfd6d7dc05 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() ) {