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,
} = getSetting( 'onboarding', {
customLogo: '',
hasHomePage: false,
hasHomepage: false,
hasPhysicalProducts: false,
hasProducts: false,
isTaxComplete: false,

View File

@ -83,7 +83,7 @@ class OnboardingTasks {
// task completion along with cache busting for active tasks.
$settings['onboarding']['automatedTaxSupportedCountries'] = self::get_automated_tax_supported_countries();
$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(
wc_get_products(
array(