Skip to content

Commit

Permalink
Merge pull request #411 from humanmade/backport-406-to-v7-branch
Browse files Browse the repository at this point in the history
[Backport v7-branch] Skip upgrade notice if on a dev branch
  • Loading branch information
shadyvb committed Feb 23, 2022
2 parents 82ba8f4 + e83ebf1 commit 8d0538d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions inc/upgrades/namespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand Down

0 comments on commit 8d0538d

Please sign in to comment.