diff --git a/includes/Migration.php b/includes/Migration.php index 751df2d..7760b78 100644 --- a/includes/Migration.php +++ b/includes/Migration.php @@ -82,7 +82,7 @@ public function delete_plugin( $file ) { 'data' => array(), ); EventService::send( $event ); - } else { + } elseif ( 'failed' === $isMigrationCompleted ) { $event = array( 'category' => 'wonder_start', 'action' => 'migration_failed',