Skip to content

Commit 39cc455

Browse files
committed
fix
1 parent e7d401c commit 39cc455

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

php/Admin/fn-admin.php

+1-11
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function addon_outdated_notice( string $name ): void {
2828
$version = defined( $version_const_name ) ? constant( $version_const_name ) : '';
2929
$req_ver = defined( $req_ver_const_name ) ? constant( $req_ver_const_name ) : '';
3030

31-
if ( $version && version_compare( $req_ver, $version, '<' ) ) {
31+
if ( $version && version_compare( $version, $req_ver, '<' ) ) {
3232
$msg = sprintf(
3333
// Translators: %1$s Addon Name, %2$s Version required, %3$s Setup URL, %4$s Manual URL,
3434
__(
@@ -41,16 +41,6 @@ function addon_outdated_notice( string $name ): void {
4141
'https://nextgenthemes.com/plugins/arve/documentation/installation/'
4242
);
4343

44-
if ( str_contains_any( VERSION, array( 'alpha', 'beta' ) ) ) {
45-
$msg = sprintf(
46-
// Translators: %1$s Pro Version required
47-
__( 'Your ARVE Pro Addon is outdated, you need version %2$s or later. Pre release updates my need a manual update. Download from <a href="%3$s">your account</a>.', 'advanced-responsive-video-embedder' ),
48-
$req_ver,
49-
esc_url( get_admin_url() . 'options-general.php?page=nextgenthemes' ),
50-
'https://nextgenthemes.com/my-account/'
51-
);
52-
}
53-
5444
Notices::instance()->register_notice(
5545
'ngt-arve-' . $name . '-outdated-v' . $req_ver,
5646
'notice-error',

0 commit comments

Comments
 (0)