YoastSEO_Vendor\GuzzleHttp\Psr7
UriNormalizer::decodeUnreservedCharacters() private Yoast 1.0
{} Это метод класса: UriNormalizer{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$result = UriNormalizer::decodeUnreservedCharacters( \YoastSEO_Vendor\Psr\Http\Message\UriInterface $uri );
Код UriNormalizer::decodeUnreservedCharacters() UriNormalizer::decodeUnreservedCharacters Yoast 15.7
private static function decodeUnreservedCharacters(\YoastSEO_Vendor\Psr\Http\Message\UriInterface $uri)
{
$regex = '/%(?:2D|2E|5F|7E|3[0-9]|[46][1-9A-F]|[57][0-9A])/i';
$callback = function (array $match) {
return \rawurldecode($match[0]);
};
return $uri->withPath(\preg_replace_callback($regex, $callback, $uri->getPath()))->withQuery(\preg_replace_callback($regex, $callback, $uri->getQuery()));
}