Reset current_step state when installing.

This commit is contained in:
Akeda Bagus 2019-07-11 01:44:31 +07:00
parent 7d07e70958
commit 5756766a03
No known key found for this signature in database
GPG Key ID: B21A9FC4B7761412
1 changed files with 3 additions and 1 deletions

View File

@ -24,7 +24,7 @@ class WC_WCCOM_Site_Installer {
private static $default_state = array(
'status' => 'idle',
'steps' => array(),
'current_step' => array(),
'current_step' => null,
);
/**
@ -116,6 +116,8 @@ class WC_WCCOM_Site_Installer {
$steps = array_fill_keys( array_keys( $products ), self::$default_step_state );
self::update_state( 'steps', $steps );
self::update_state( 'current_step', null );
$args = array(
'products' => $products,
);