Onboarding: Skip homepage step when classic editor is in use (https://github.com/woocommerce/woocommerce-admin/pull/3244)

This commit is contained in:
Joshua T Flowers 2019-11-15 08:17:48 +08:00 committed by GitHub
parent 08ea4648ca
commit ee747d2869
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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(