WordPress\AiClientDependencies\Nyholm\Psr7
Uri::filterPath
Method of the class: Uri{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->filterPath( $path ): string;
- $path(required)
- .
Uri::filterPath() Uri::filterPath code WP 7.0
private function filterPath($path): string
{
if (!\is_string($path)) {
throw new \InvalidArgumentException('Path must be a string');
}
return \preg_replace_callback('/(?:[^' . self::CHAR_UNRESERVED . self::CHAR_SUB_DELIMS . '%:@\/]++|%(?![A-Fa-f0-9]{2}))/', [__CLASS__, 'rawurlencodeMatchZero'], $path);
}