Merge pull request #32490 from woocommerce/fix/32136-onboarding-product-notice-appeared-too-early

Fix continue setup prompt for adding first product appeared too early
This commit is contained in:
Chi-Hsuan Huang 2022-04-07 16:01:31 +08:00 committed by GitHub
commit 82da8cd196
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -98,7 +98,7 @@ class Products extends Task {
return;
}
if ( ! $this->is_active() || $this->is_complete() ) {
if ( ! $this->is_active() || ! $this->is_complete() ) {
return;
}
@ -112,6 +112,9 @@ class Products extends Task {
WC_VERSION,
true
);
// Clear the active task transient to only show notice once per active session.
delete_transient( self::ACTIVE_TASK_TRANSIENT );
}
/**