From d4c699a35ff61c55284233745b554345b20ae68d Mon Sep 17 00:00:00 2001 From: Leo Fajardo Date: Thu, 2 Jul 2026 19:35:11 +0800 Subject: [PATCH] [bundle] [license-activation] Fix the bundle license auto-activation mechanism. --- includes/class-freemius.php | 15 +++++++++------ start.php | 2 +- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/includes/class-freemius.php b/includes/class-freemius.php index 6fc8bd9a..fbd7491a 100755 --- a/includes/class-freemius.php +++ b/includes/class-freemius.php @@ -7834,15 +7834,18 @@ private function activate_bundle_license( $license, $sites = array(), $current_b continue; } - if ( - ! $fs->is_addon() && - ! FS_Plan_Manager::instance()->has_paid_plan( $fs->_plans ) - ) { + if ( ! $fs->is_addon() && $fs->has_bundle_context() && $fs->is_registered() ) { /** * The parent product can be free-only but can have its `has_paid_plan` flag set to `true` when - * there is a context bundle. + * there is a context bundle. Ensure plans are synced before checking. */ - continue; + if ( empty( $fs->_plans ) ) { + $fs->_sync_plans(); + } + + if ( ! FS_Plan_Manager::instance()->has_paid_plan( $fs->_plans ) ) { + continue; + } } if ( $current_blog_id > 0 ) { diff --git a/start.php b/start.php index cea748b5..5bcf555a 100644 --- a/start.php +++ b/start.php @@ -15,7 +15,7 @@ * * @var string */ - $this_sdk_version = '2.13.4'; + $this_sdk_version = '2.13.4.1'; #region SDK Selection Logic --------------------------------------------------------------------