Changeset 37292 for trunk/src/wp-includes/wp-db.php
- Timestamp:
- 04/22/2016 05:18:08 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/wp-db.php
r37086 r37292 1487 1487 } 1488 1488 1489 mysqli_real_connect( $this->dbh, $host, $this->dbuser, $this->dbpassword, null, $port, $socket, $client_flags ); 1489 if ( WP_DEBUG ) { 1490 mysqli_real_connect( $this->dbh, $host, $this->dbuser, $this->dbpassword, null, $port, $socket, $client_flags ); 1491 } else { 1492 @mysqli_real_connect( $this->dbh, $host, $this->dbuser, $this->dbpassword, null, $port, $socket, $client_flags ); 1493 } 1490 1494 1491 1495 if ( $this->dbh->connect_errno ) { … … 1513 1517 } 1514 1518 } else { 1515 $this->dbh = mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, $new_link, $client_flags ); 1519 if ( WP_DEBUG ) { 1520 $this->dbh = mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, $new_link, $client_flags ); 1521 } else { 1522 $this->dbh = @mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, $new_link, $client_flags ); 1523 } 1516 1524 } 1517 1525
Note: See TracChangeset
for help on using the changeset viewer.