From 0464f38fb7a9b5e888145a12f189ae33b4e6a49f Mon Sep 17 00:00:00 2001 From: Michael Beckwith Date: Tue, 4 Nov 2025 17:17:15 -0600 Subject: [PATCH] we have 2 years of upgrades that would put people above version 2.0.1 now. we will also make use of the migrated flag --- includes/notification-logic.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/includes/notification-logic.php b/includes/notification-logic.php index 81d12b46..19742dff 100644 --- a/includes/notification-logic.php +++ b/includes/notification-logic.php @@ -174,10 +174,14 @@ function constant_contact_maybe_display_api3_upgraded_notice() : bool { } $current_version = get_option( 'ctct_plugin_version' ); + $migrated = get_option( 'ctct_api_v2_v3_migrated' ); return ( - version_compare( $current_version, '2.0.0', '=' ) || - '' === get_option( 'CtctConstantContactState', '' ) + version_compare($current_version, '2.0.1', '<' ) || + ( + empty( $migrated ) || + '1' !== $migrated + ) ); }