From d78f38a93449be1d073face8460898aa3192675e Mon Sep 17 00:00:00 2001 From: Tanner Record Date: Tue, 3 Oct 2023 10:48:16 -0400 Subject: [PATCH] Fix bug preventing user data from being saved --- src/Telemetry/Telemetry/Telemetry.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Telemetry/Telemetry/Telemetry.php b/src/Telemetry/Telemetry/Telemetry.php index b5b94a3..2cf2105 100644 --- a/src/Telemetry/Telemetry/Telemetry.php +++ b/src/Telemetry/Telemetry/Telemetry.php @@ -94,6 +94,9 @@ public function register_user( string $stellar_slug = '', string $opt_in_text = $user_details = $this->get_user_details( $stellar_slug, $opt_in_text ); try { + // Store the user info in the options table. + update_option( Status::OPTION_NAME_USER_INFO, $user_details, false ); + $this->send( $user_details, Config::get_server_url() . '/opt-in', false ); } catch ( \Error $e ) { // phpcs:ignore Generic.CodeAnalysis.EmptyStatement.DetectedCatch // We don't want to throw errors if the server fails.