Don't check against versions higher than latest version
This commit is contained in:
parent
b0bae55ce1
commit
b750c96c2a
|
@ -112,8 +112,7 @@ class WC_Beta_Tester {
|
|||
$versions = (array) $data->versions;
|
||||
|
||||
foreach ( $versions as $version => $download_url ) {
|
||||
if ( version_compare( $version, $latest_version, '>' )
|
||||
&& preg_match( '/(.*)?-(beta|rc)(.*)/', $version ) ) {
|
||||
if ( preg_match( '/(.*)?-(beta|rc)(.*)/', $version ) ) {
|
||||
$tagged_version = $version;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue