Ticket #21663: 21663.9.diff
File 21663.9.diff, 807 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 = false; 1143 if ( defined( 'E_DEPRECATED' ) ) { 1144 $error_reporting = error_reporting(); 1145 error_reporting( $error_reporting ^ E_DEPRECATED ); 1146 } 1142 1147 $this->dbh = mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, $new_link, $client_flags ); 1148 if ( false !== $error_reporting ) 1149 error_reporting( $error_reporting ); 1143 1150 } else { 1144 1151 $this->dbh = @mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, $new_link, $client_flags ); 1145 1152 }