From 50fe847b56b6e32d9a37f1ceeaa2b00f79c08870 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Mon, 6 Mar 2023 12:33:23 +0100 Subject: [PATCH] Fix class namespaces in Onboarding (#37056) * Fix class namespaces in Onboarding * Add changelog --- plugins/woocommerce/changelog/pr-37056 | 4 ++++ .../woocommerce/src/Admin/Features/Onboarding.php | 12 ++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 plugins/woocommerce/changelog/pr-37056 diff --git a/plugins/woocommerce/changelog/pr-37056 b/plugins/woocommerce/changelog/pr-37056 new file mode 100644 index 00000000000..569c062225f --- /dev/null +++ b/plugins/woocommerce/changelog/pr-37056 @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +Corrects class namespaces in Onboarding. It was missed during last restructuring. diff --git a/plugins/woocommerce/src/Admin/Features/Onboarding.php b/plugins/woocommerce/src/Admin/Features/Onboarding.php index 412b759da60..99a3738b6e4 100644 --- a/plugins/woocommerce/src/Admin/Features/Onboarding.php +++ b/plugins/woocommerce/src/Admin/Features/Onboarding.php @@ -41,7 +41,7 @@ class Onboarding extends DeprecatedClassFacade { */ public static function get_allowed_industries() { wc_deprecated_function( 'get_allowed_industries', '6.3', '\Automattic\WooCommerce\Internal\Admin\OnboardingIndustries::get_allowed_industries()' ); - return \Automattic\WooCommerce\Internal\Admin\OnboardingIndustries::get_allowed_industries(); + return \Automattic\WooCommerce\Internal\Admin\Onboarding\OnboardingIndustries::get_allowed_industries(); } /** @@ -52,7 +52,7 @@ class Onboarding extends DeprecatedClassFacade { */ public static function get_allowed_product_types() { wc_deprecated_function( 'get_allowed_product_types', '6.3', '\Automattic\WooCommerce\Internal\Admin\OnboardingProducts::get_allowed_product_types()' ); - return \Automattic\WooCommerce\Internal\Admin\OnboardingProducts::get_allowed_product_types(); + return \Automattic\WooCommerce\Internal\Admin\Onboarding\OnboardingProducts::get_allowed_product_types(); } /** @@ -63,7 +63,7 @@ class Onboarding extends DeprecatedClassFacade { */ public static function get_themes() { wc_deprecated_function( 'get_themes', '6.3', '\Automattic\WooCommerce\Internal\Admin\OnboardingThemes::get_themes()' ); - return \Automattic\WooCommerce\Internal\Admin\OnboardingThemes::get_themes(); + return \Automattic\WooCommerce\Internal\Admin\Onboarding\OnboardingThemes::get_themes(); } /** @@ -75,7 +75,7 @@ class Onboarding extends DeprecatedClassFacade { */ public static function get_theme_data( $theme ) { wc_deprecated_function( 'get_theme_data', '6.3', '\Automattic\WooCommerce\Internal\Admin\OnboardingThemes::get_theme_data()' ); - return \Automattic\WooCommerce\Internal\Admin\OnboardingThemes::get_theme_data(); + return \Automattic\WooCommerce\Internal\Admin\Onboarding\OnboardingThemes::get_theme_data(); } /** @@ -86,7 +86,7 @@ class Onboarding extends DeprecatedClassFacade { */ public static function get_allowed_themes() { wc_deprecated_function( 'get_allowed_themes', '6.3', '\Automattic\WooCommerce\Internal\Admin\OnboardingThemes::get_allowed_themes()' ); - return \Automattic\WooCommerce\Internal\Admin\OnboardingThemes::get_allowed_themes(); + return \Automattic\WooCommerce\Internal\Admin\Onboarding\OnboardingThemes::get_allowed_themes(); } /** @@ -98,6 +98,6 @@ class Onboarding extends DeprecatedClassFacade { */ public static function get_product_data( $product_types ) { wc_deprecated_function( 'get_product_data', '6.3', '\Automattic\WooCommerce\Internal\Admin\OnboardingProducts::get_product_data()' ); - return \Automattic\WooCommerce\Internal\Admin\OnboardingProducts::get_product_data(); + return \Automattic\WooCommerce\Internal\Admin\Onboarding\OnboardingProducts::get_product_data(); } }