diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php
index f0622e3..d12f4dd 100644
|
a
|
b
|
class wpdb { |
| 1433 | 1433 | $port = null; |
| 1434 | 1434 | $socket = null; |
| 1435 | 1435 | $host = $this->dbhost; |
| | 1436 | $pre_host = ''; |
| | 1437 | // If DB_HOST begins with a 'p:', allow it to be passed to mysqli_real_connect(). |
| | 1438 | // mysqli supports persistent connections starting with PHP 5.3.0. |
| | 1439 | if (version_compare( phpversion(), '5.3.0', '>=' ) && 0 === strpos( $host, 'p:' )) { |
| | 1440 | $host = substr( $host, 2 ); |
| | 1441 | $pre_host = 'p:'; |
| | 1442 | } |
| 1436 | 1443 | $port_or_socket = strstr( $host, ':' ); |
| 1437 | 1444 | if ( ! empty( $port_or_socket ) ) { |
| 1438 | 1445 | $host = substr( $host, 0, strpos( $host, ':' ) ); |
| … |
… |
class wpdb { |
| 1447 | 1454 | $socket = $port_or_socket; |
| 1448 | 1455 | } |
| 1449 | 1456 | } |
| | 1457 | $host = $pre_host . $host; |
| 1450 | 1458 | |
| 1451 | 1459 | if ( WP_DEBUG ) { |
| 1452 | 1460 | mysqli_real_connect( $this->dbh, $host, $this->dbuser, $this->dbpassword, null, $port, $socket, $client_flags ); |