mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-14 09:34:41 +00:00
Only show database errors if WP_DEBUG_DISPLAY is enabled. props cheeserolls, storkontheroof, crazycoders. fixes #22203.
git-svn-id: https://develop.svn.wordpress.org/trunk@24027 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user