API / Minn\Runtime / VersionCheck

VersionCheck final class

Minn\Runtime\VersionCheck · public/minn/src/Minn/Runtime/VersionCheck.php · 27 lines

Whether the WordPress version Minn reports and the PHP it runs on meet a requirement (a plugin's "Requires at least" and "Requires PHP"), and where to read about updating PHP.

Public

staticwordpress(mixed $required): bool#

Whether the reported WordPress version is at least the one required (is_wp_version_compatible); nothing required always is.

staticphp(mixed $required): bool#

Whether PHP is at least the version required (is_php_version_compatible); nothing required always is.

staticupdatePhpUrl(): string#

The page about updating PHP (wp_get_update_php_url): the filter's, unless it gives no address.

staticdefaultUpdatePhpUrl(): string#

The page about updating PHP before any filter (wp_get_default_update_php_url), in the site's language.