Skip to content

Commit

Permalink
Inline current page URL function in redirect validation
Browse files Browse the repository at this point in the history
  • Loading branch information
robincornett committed Nov 30, 2020
1 parent 19fb00b commit 33e6541
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions includes/login-register.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,7 @@ function edd_login_register_error_message( $errors, $redirect ) {
* @return string
*/
function edd_get_lostpassword_url() {
$url = edd_get_current_page_url();
$url = wp_validate_redirect( $url, edd_get_checkout_uri() );
$url = wp_validate_redirect( edd_get_current_page_url(), edd_get_checkout_uri() );
$redirect = add_query_arg(
array(
'checkemail' => 'confirm',
Expand Down

0 comments on commit 33e6541

Please sign in to comment.