Reset current_step state when installing.
This commit is contained in:
parent
7d07e70958
commit
5756766a03
|
@ -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,
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue