diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index 391cfa4dc9..14e765a882 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -536,7 +536,7 @@ class wpdb { function __construct( $dbuser, $dbpassword, $dbname, $dbhost ) { register_shutdown_function( array( $this, '__destruct' ) ); - if ( WP_DEBUG ) + if ( WP_DEBUG && WP_DEBUG_DISPLAY ) $this->show_errors(); $this->init_charset();