Don't check against versions higher than latest version

This commit is contained in:
Boro Sitnikovski 2018-06-05 23:46:34 +02:00
parent b0bae55ce1
commit b750c96c2a
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}
}