Include activeTheme onboarding setting if the task list is shown (https://github.com/woocommerce/woocommerce-admin/pull/4834)

Co-authored-by: Rebecca Scott <me@becdetat.com>
This commit is contained in:
Bec Scott 2020-07-22 09:55:25 +10:00 committed by GitHub
parent ae6f5d4615
commit a82d359a5e
1 changed files with 1 additions and 5 deletions

View File

@ -582,13 +582,9 @@ class Onboarding {
'profile' => $profile,
);
// Only fetch if the onboarding wizard is incomplete.
if ( self::should_show_profiler() ) {
$settings['onboarding']['activeTheme'] = get_option( 'stylesheet' );
}
// Only fetch if the onboarding wizard OR the task list is incomplete.
if ( self::should_show_profiler() || self::should_show_tasks() ) {
$settings['onboarding']['activeTheme'] = get_option( 'stylesheet' );
$settings['onboarding']['stripeSupportedCountries'] = self::get_stripe_supported_countries();
$settings['onboarding']['euCountries'] = WC()->countries->get_european_union_countries();
$current_user = wp_get_current_user();