mali ste niekto taku chybu?:
Kód:
Warning: preg_match(): Compilation failed: unrecognized character after (?< at offset 4 in /***/public_html/wp-includes/wp-db.php on line 1657
nasiel som nieco o tom, napr.
https://wordpress.org/support/topic/preg_match-compilation-failed-at-wp-db-php-on-line-1657/ale riesenie som tam nenasiel
// Spojený príspevok Str 24.01.18 11:44TEDA NIEKTO TAM PISE ZE V TOM KODE
Kód:
* @since 4.9.0
*
* @param string $host The DB_HOST setting to parse.
* @return array|bool Array containing the host, the port, the socket and whether
* it is an IPv6 address, in that order. If $host couldn't be parsed,
* returns false.
*/
public function parse_db_host( $host ) {
$port = null;
$socket = null;
$is_ipv6 = false;
// We need to check for an IPv6 address first.
// An IPv6 address will always contain at least two colons.
if ( substr_count( $host, ':' ) > 1 ) {
<strong>$pattern = '#^(?:\[)?(?<host>[0-9a-fA-F:]+)(?:\]:(?<port></strong>[\d]+))?(?:/(?<socket>.+))?#';
$is_ipv6 = true;
} else {
// We seem to be dealing with an IPv4 address.
<strong>$pattern = '#^(?<host>[^:/]*)(?::(?<port>[\d]+))?(?::(?<socket>.+))?#';</strong>
}
$matches = array();
$result = preg_match( $pattern, $host, $matches );
TREBA ZMENIT ?< NA ?P< ALE NEVIEM KDE TO PRESNE MYSLI, NA AKOM RIADKU, MOZNO V TYCH RIADKOCH CO SU STRONG, TAM SU TIE REGULARNE VYRAZY, KDE VIDIM AJ ZNAKY <?