From 2a339929c434157eaaabd9ef8f6145fd439b3f23 Mon Sep 17 00:00:00 2001 From: Ramya krishna Date: Mon, 24 Jun 2024 18:09:10 +0530 Subject: [PATCH 1/2] migration aborted event --- includes/Listeners/Wonder_Start.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/Listeners/Wonder_Start.php b/includes/Listeners/Wonder_Start.php index 50ca6a7..7f9fffb 100644 --- a/includes/Listeners/Wonder_Start.php +++ b/includes/Listeners/Wonder_Start.php @@ -29,7 +29,9 @@ public function on_update_instawp_last_migration_details( $new_option, $old_valu $this->push( 'migration_completed', array() ); } elseif ( 'failed' === $value_updated ) { $this->push( 'migration_failed', array() ); - } + } elseif ( 'aborted' === $value_updated ) { + $this->push( 'migration_aborted', array() ); + } } return $new_option; From 7bb69f2e95289e885b79e1b2c0bffb61378bf386 Mon Sep 17 00:00:00 2001 From: Ramya krishna Date: Mon, 24 Jun 2024 18:12:51 +0530 Subject: [PATCH 2/2] linting fixes --- includes/Listeners/Wonder_Start.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Listeners/Wonder_Start.php b/includes/Listeners/Wonder_Start.php index 7f9fffb..29b6855 100644 --- a/includes/Listeners/Wonder_Start.php +++ b/includes/Listeners/Wonder_Start.php @@ -31,7 +31,7 @@ public function on_update_instawp_last_migration_details( $new_option, $old_valu $this->push( 'migration_failed', array() ); } elseif ( 'aborted' === $value_updated ) { $this->push( 'migration_aborted', array() ); - } + } } return $new_option;