Uri::isNonStandardPort( $scheme,  $port )

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.

Is a given port non-standard for the current scheme?

Source

private static function isNonStandardPort(string $scheme, int $port): bool
{
    return !isset(self::SCHEMES[$scheme]) || $port !== self::SCHEMES[$scheme];
}

User Contributed Notes

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