Uri::filterPath( $path )

In this article

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only by core. It is listed here for completeness.

Source

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);
}

User Contributed Notes

You must log in before being able to contribute a note or feedback.