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:
parent
ae6f5d4615
commit
a82d359a5e
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue