From c604dcb62b15aa592db9261a008e5240d5a9bc22 Mon Sep 17 00:00:00 2001 From: Soare Robert-Daniel Date: Mon, 26 Oct 2026 13:09:00 +0200 Subject: [PATCH] fix(black-friday): treat active_expired licenses as expired The SDK reports expired-but-active licenses as `active_expired`, but the check only matched `active-expired`, so these users got the free offer. Accept both values. Refs Codeinwp/themeisle#2097 Co-Authored-By: Claude Opus 5.5 --- inc/admin/dashboard/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/admin/dashboard/main.php b/inc/admin/dashboard/main.php index 331d0d0d2b..509c9eb1c2 100755 --- a/inc/admin/dashboard/main.php +++ b/inc/admin/dashboard/main.php @@ -1380,7 +1380,7 @@ public static function get_black_friday_data( $default = array() ) { $license_status = apply_filters( 'product_neve_license_status', false ); $has_valid_license = 'valid' === $license_status; - $has_expired_license = 'expired' === $license_status || 'active-expired' === $license_status; + $has_expired_license = in_array( $license_status, array( 'expired', 'active_expired', 'active-expired' ), true ); $neve_pro_product_slug = defined( 'NEVE_PRO_BASEFILE' ) ? basename( dirname( NEVE_PRO_BASEFILE ) ) : '';