From e36c5d3b8f848c0b36bfac92fbf1cf6bf037f40b Mon Sep 17 00:00:00 2001 From: Eric Jinks Date: Thu, 5 May 2022 10:37:48 +1000 Subject: [PATCH] Change plugin eligibility to check for installed plugins --- .../src/Internal/Admin/WcPaySubscriptionsPage.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/woocommerce/src/Internal/Admin/WcPaySubscriptionsPage.php b/plugins/woocommerce/src/Internal/Admin/WcPaySubscriptionsPage.php index cfaa159a931..b50d0c65181 100644 --- a/plugins/woocommerce/src/Internal/Admin/WcPaySubscriptionsPage.php +++ b/plugins/woocommerce/src/Internal/Admin/WcPaySubscriptionsPage.php @@ -77,8 +77,8 @@ class WcPaySubscriptionsPage { * @return bool */ private function is_store_experiment_eligible() { - // Ineligible if WooCommerce Payments OR an existing subscriptions plugin is active. - $active_plugins = PluginsHelper::get_active_plugin_slugs(); + // Ineligible if WooCommerce Payments OR an existing subscriptions plugin is installed. + $installed_plugins = PluginsHelper::get_installed_plugin_slugs(); $plugin_ineligible_list = array( 'woocommerce-payments', 'woocommerce-subscriptions', @@ -87,7 +87,7 @@ class WcPaySubscriptionsPage { 'yith-woocommerce-subscription', ); foreach ( $plugin_ineligible_list as $plugin_slug ) { - if ( in_array( $plugin_slug, $active_plugins, true ) ) { + if ( in_array( $plugin_slug, $installed_plugins, true ) ) { return false; } }