From 17a103dca3cc15d5154c208a0a6c9c5d024d02cf Mon Sep 17 00:00:00 2001 From: Micah Wood Date: Tue, 12 Dec 2023 16:39:51 -0500 Subject: [PATCH] Match exact logic from LoginRedirect.php `disable_redirect()` --- includes/RestApi/FlowController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/RestApi/FlowController.php b/includes/RestApi/FlowController.php index e1f676dec..f64209330 100644 --- a/includes/RestApi/FlowController.php +++ b/includes/RestApi/FlowController.php @@ -110,7 +110,7 @@ public function get() { public function save_onboarding_flow_data( \WP_REST_Request $request ) { $params = json_decode( $request->get_body(), true ); - update_option( Options::get_option_name( 'redirect' ), false ); + update_option( Options::get_option_name( 'redirect' ), '0' ); $flow_data = FlowService::update_data( $params ); if ( is_wp_error( $flow_data ) ) {