Fix class namespaces in Onboarding (#37056)

* Fix class namespaces in Onboarding

* Add changelog
This commit is contained in:
Viktor Szépe 2023-03-06 12:33:23 +01:00 committed by GitHub
parent 6e2c4d1fa9
commit 50fe847b56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 6 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
Corrects class namespaces in Onboarding. It was missed during last restructuring.

View File

@ -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();
}
}