mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 00:01:27 +01:00
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
This commit is contained in:
parent
b01479de37
commit
88a89ebe44
@ -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