Ticket #27277: 27277.diff
File 27277.diff, 567 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/wp-db.php
1315 1315 $host = $this->dbhost; 1316 1316 $port_or_socket = strstr( $host, ':' ); 1317 1317 if ( ! empty( $port_or_socket ) ) { 1318 $host = s trstr( $host, ':', true);1318 $host = substr( $host, 0, strpos( $host, ':' ) ); 1319 1319 $port_or_socket = substr( $port_or_socket, 1 ); 1320 1320 if ( 0 !== strpos( $port_or_socket, '/' ) ) { 1321 1321 $port = intval( $port_or_socket );