Fix continue setup prompt for adding first product appeared too early

This commit is contained in:
Chi-Hsuan Huang 2022-04-05 16:59:25 +08:00
parent 605fc47389
commit bab72ea51b
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 );
}
/**