From 15da9903d4b8f547308b0a3328eb285c93a26f8b Mon Sep 17 00:00:00 2001 From: "Panos (Panagiotis) Synetos" <2484390+PanosSynetos@users.noreply.github.com> Date: Mon, 6 Nov 2023 13:19:33 +0200 Subject: [PATCH] Cleanup references to is_ecommerce --- .../IsWooExpressRuleProcessor.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/plugins/woocommerce/src/Admin/RemoteInboxNotifications/IsWooExpressRuleProcessor.php b/plugins/woocommerce/src/Admin/RemoteInboxNotifications/IsWooExpressRuleProcessor.php index f239c7c13d9..55418105b46 100644 --- a/plugins/woocommerce/src/Admin/RemoteInboxNotifications/IsWooExpressRuleProcessor.php +++ b/plugins/woocommerce/src/Admin/RemoteInboxNotifications/IsWooExpressRuleProcessor.php @@ -1,7 +1,6 @@ value; } - $fn = 'wc_calypso_bridge_is_ecommerce_' . (string) $rule->plan . '_plan'; - if ( function_exists( $fn ) ) { - return $fn() === $rule->value; - } - // If an invalid plan name is given, only evaluate the rule if we're targeting all plans other than the specified (invalid) one. return false === $rule->value; }