Changeset 42550 for branches/4.9/src/wp-includes/wp-db.php
- Timestamp:
- 01/23/2018 03:39:45 AM (7 years ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
-
branches/4.9/src/wp-includes/wp-db.php
r42455 r42550 1647 1647 // An IPv6 address will always contain at least two colons. 1648 1648 if ( substr_count( $host, ':' ) > 1 ) { 1649 $pattern = '#^(?:\[)?(? <host>[0-9a-fA-F:]+)(?:\]:(?<port>[\d]+))?#';1649 $pattern = '#^(?:\[)?(?P<host>[0-9a-fA-F:]+)(?:\]:(?P<port>[\d]+))?#'; 1650 1650 $is_ipv6 = true; 1651 1651 } else { 1652 1652 // We seem to be dealing with an IPv4 address. 1653 $pattern = '#^(? <host>[^:/]*)(?::(?<port>[\d]+))?#';1653 $pattern = '#^(?P<host>[^:/]*)(?::(?P<port>[\d]+))?#'; 1654 1654 } 1655 1655
Note: See TracChangeset
for help on using the changeset viewer.