From 5756766a039cbcfa503f2d720ebd7bfd7857e000 Mon Sep 17 00:00:00 2001 From: Akeda Bagus Date: Thu, 11 Jul 2019 01:44:31 +0700 Subject: [PATCH] Reset current_step state when installing. --- includes/wccom-site/class-wc-wccom-site-installer.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/wccom-site/class-wc-wccom-site-installer.php b/includes/wccom-site/class-wc-wccom-site-installer.php index 58f22176f0f..ca5f44285e6 100644 --- a/includes/wccom-site/class-wc-wccom-site-installer.php +++ b/includes/wccom-site/class-wc-wccom-site-installer.php @@ -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, );