Onboarding: Skip homepage step when classic editor is in use (https://github.com/woocommerce/woocommerce-admin/pull/3244)
This commit is contained in:
parent
08ea4648ca
commit
ee747d2869
|
@ -34,7 +34,7 @@ export function getTasks( { profileItems, options, query } ) {
|
||||||
shippingZonesCount,
|
shippingZonesCount,
|
||||||
} = getSetting( 'onboarding', {
|
} = getSetting( 'onboarding', {
|
||||||
customLogo: '',
|
customLogo: '',
|
||||||
hasHomePage: false,
|
hasHomepage: false,
|
||||||
hasPhysicalProducts: false,
|
hasPhysicalProducts: false,
|
||||||
hasProducts: false,
|
hasProducts: false,
|
||||||
isTaxComplete: false,
|
isTaxComplete: false,
|
||||||
|
|
|
@ -83,7 +83,7 @@ class OnboardingTasks {
|
||||||
// task completion along with cache busting for active tasks.
|
// task completion along with cache busting for active tasks.
|
||||||
$settings['onboarding']['automatedTaxSupportedCountries'] = self::get_automated_tax_supported_countries();
|
$settings['onboarding']['automatedTaxSupportedCountries'] = self::get_automated_tax_supported_countries();
|
||||||
$settings['onboarding']['customLogo'] = get_theme_mod( 'custom_logo', false );
|
$settings['onboarding']['customLogo'] = get_theme_mod( 'custom_logo', false );
|
||||||
$settings['onboarding']['hasHomepage'] = self::check_task_completion( 'homepage' );
|
$settings['onboarding']['hasHomepage'] = self::check_task_completion( 'homepage' ) || 'classic' === get_option( 'classic-editor-replace' );
|
||||||
$settings['onboarding']['hasPhysicalProducts'] = count(
|
$settings['onboarding']['hasPhysicalProducts'] = count(
|
||||||
wc_get_products(
|
wc_get_products(
|
||||||
array(
|
array(
|
||||||
|
|
Loading…
Reference in New Issue