Skip to content

Commit

Permalink
Match exact logic from LoginRedirect.php disable_redirect()
Browse files Browse the repository at this point in the history
  • Loading branch information
wpscholar committed Dec 12, 2023
1 parent fb8f4f2 commit 17a103d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/RestApi/FlowController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) ) {
Expand Down

0 comments on commit 17a103d

Please sign in to comment.