Ticket #21663: 21663.7.diff
File 21663.7.diff, 726 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/wp-db.php
1139 1139 $client_flags = defined( 'MYSQL_CLIENT_FLAGS' ) ? MYSQL_CLIENT_FLAGS : 0; 1140 1140 1141 1141 if ( WP_DEBUG ) { 1142 $error_reporting = error_reporting(); 1143 if ( defined( 'E_DEPRECATED' ) ) { 1144 error_reporting( E_ALL ^ E_DEPRECATED ); 1145 } 1142 1146 $this->dbh = mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, $new_link, $client_flags ); 1147 error_reporting( $error_reporting ); 1143 1148 } else { 1144 1149 $this->dbh = @mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, $new_link, $client_flags ); 1145 1150 }