WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

YoastSEO_Vendor\GuzzleHttp\Psr7

UriResolver::resolve() public Yoast 1.0

Converts the relative URI into a new URI that is resolved against the base URI.

{} Это метод класса: UriResolver{}

Хуков нет.

Возвращает

UriInterface.

Использование

$result = UriResolver::resolve( \YoastSEO_Vendor\Psr\Http\Message\UriInterface $base, \YoastSEO_Vendor\Psr\Http\Message\UriInterface $rel );
$base(Uriчислоerface) (обязательный)
Base URI
$rel(Uriчислоerface) (обязательный)
Relative URI

Код UriResolver::resolve() Yoast 15.6.2

<?php
public static function resolve(\YoastSEO_Vendor\Psr\Http\Message\UriInterface $base, \YoastSEO_Vendor\Psr\Http\Message\UriInterface $rel)
{
    if ((string) $rel === '') {
        // we can simply return the same base URI instance for this same-document reference
        return $base;
    }
    if ($rel->getScheme() != '') {
        return $rel->withPath(self::removeDotSegments($rel->getPath()));
    }
    if ($rel->getAuthority() != '') {
        $targetAuthority = $rel->getAuthority();
        $targetPath = self::removeDotSegments($rel->getPath());
        $targetQuery = $rel->getQuery();
    } else {
        $targetAuthority = $base->getAuthority();
        if ($rel->getPath() === '') {
            $targetPath = $base->getPath();
            $targetQuery = $rel->getQuery() != '' ? $rel->getQuery() : $base->getQuery();
        } else {
            if ($rel->getPath()[0] === '/') {
                $targetPath = $rel->getPath();
            } else {
                if ($targetAuthority != '' && $base->getPath() === '') {
                    $targetPath = '/' . $rel->getPath();
                } else {
                    $lastSlashPos = \strrpos($base->getPath(), '/');
                    if ($lastSlashPos === \false) {
                        $targetPath = $rel->getPath();
                    } else {
                        $targetPath = \substr($base->getPath(), 0, $lastSlashPos + 1) . $rel->getPath();
                    }
                }
            }
            $targetPath = self::removeDotSegments($targetPath);
            $targetQuery = $rel->getQuery();
        }
    }
    return new \YoastSEO_Vendor\GuzzleHttp\Psr7\Uri(\YoastSEO_Vendor\GuzzleHttp\Psr7\Uri::composeComponents($base->getScheme(), $targetAuthority, $targetPath, $targetQuery, $rel->getFragment()));
}