mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
Show DB errors if WP_DEBUG and if installing. see #5473
git-svn-id: https://develop.svn.wordpress.org/trunk@6469 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -55,6 +55,9 @@ class wpdb {
|
||||
function __construct($dbuser, $dbpassword, $dbname, $dbhost) {
|
||||
register_shutdown_function(array(&$this, "__destruct"));
|
||||
|
||||
if ( defined('WP_DEBUG') and WP_DEBUG == true )
|
||||
$this->show_errors();
|
||||
|
||||
if ( defined('DB_CHARSET') )
|
||||
$this->charset = DB_CHARSET;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user