Skip to content

Commit

Permalink
Fix Modal is not open after an error (#6677)
Browse files Browse the repository at this point in the history
With esc_url() escaping the redirect URL, special characters like & as preserved, and the modal window is not open. As for preview messages, I suggest using esc_url_raw().
  • Loading branch information
Genevieve-K authored Feb 6, 2023
1 parent 463918a commit d5fbc8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/forms/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -2421,7 +2421,7 @@ function give_redirect_and_popup_form( $redirect, $args ) {
}

// Return the modified URL.
return esc_url( $redirect );
return esc_url_raw( $redirect );
}

add_filter( 'give_send_back_to_checkout', 'give_redirect_and_popup_form', 10, 2 );

0 comments on commit d5fbc8d

Please sign in to comment.