From 1d04ddcd113a347b2f1cb9ad6de0b05db70bbf53 Mon Sep 17 00:00:00 2001 From: Vedanshu Jain Date: Mon, 26 Jun 2023 18:25:24 +0530 Subject: [PATCH] Pass the correct param in woocommerce_settings_features. --- .../woocommerce/src/Internal/Features/FeaturesController.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/woocommerce/src/Internal/Features/FeaturesController.php b/plugins/woocommerce/src/Internal/Features/FeaturesController.php index 4418536b466..f4e34578aea 100644 --- a/plugins/woocommerce/src/Internal/Features/FeaturesController.php +++ b/plugins/woocommerce/src/Internal/Features/FeaturesController.php @@ -565,11 +565,9 @@ class FeaturesController { * * @param bool $disabled False. */ - $additional_features = apply_filters( 'woocommerce_settings_features', $features ); + $feature_settings = apply_filters( 'woocommerce_settings_features', $feature_settings ); // phpcs:enable WooCommerce.Commenting.CommentHooks.MissingSinceComment - $feature_settings = array_merge( $feature_settings, $additional_features ); - if ( ! empty( $experimental_feature_ids ) ) { $feature_settings[] = array( 'type' => 'sectionend',