From e83ebf1a7b432bd83a4f9a56c711fa200fb55e2c Mon Sep 17 00:00:00 2001 From: Shady Sharaf Date: Wed, 23 Feb 2022 12:33:40 +0000 Subject: [PATCH] Skip upgrade notice if on a dev branch --- inc/upgrades/namespace.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/inc/upgrades/namespace.php b/inc/upgrades/namespace.php index 45ac2ec..6253d1e 100644 --- a/inc/upgrades/namespace.php +++ b/inc/upgrades/namespace.php @@ -124,6 +124,11 @@ function get_current_version_info() : ?array { */ function is_version_latest() : bool { $version = Altis\get_version(); + + if ( ! isset( $version ) ) { + return true; + } + $releases = get_supported_version_info(); return $version === ( $releases[0]['version'] ?? $version ); }