Changeset 42549
- Timestamp:
- 01/23/2018 03:38:42 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/wp-db.php
r42388 r42549 1704 1704 // An IPv6 address will always contain at least two colons. 1705 1705 if ( substr_count( $host, ':' ) > 1 ) { 1706 $pattern = '#^(?:\[)?(? <host>[0-9a-fA-F:]+)(?:\]:(?<port>[\d]+))?#';1706 $pattern = '#^(?:\[)?(?P<host>[0-9a-fA-F:]+)(?:\]:(?P<port>[\d]+))?#'; 1707 1707 $is_ipv6 = true; 1708 1708 } else { 1709 1709 // We seem to be dealing with an IPv4 address. 1710 $pattern = '#^(? <host>[^:/]*)(?::(?<port>[\d]+))?#';1710 $pattern = '#^(?P<host>[^:/]*)(?::(?P<port>[\d]+))?#'; 1711 1711 } 1712 1712
Note: See TracChangeset
for help on using the changeset viewer.