From 91fba6a05aca0f11d25c1f38827e08f9fef83929 Mon Sep 17 00:00:00 2001
From: Adhun Anand <adhun@awsm.in>
Date: Thu, 11 May 2017 10:29:50 +0530
Subject: [PATCH] Urlencode patch
---
wp-includes/general-template.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php
index e186e18..f868822 100644
a
|
b
|
function wp_login_form( $args = array() ) { |
504 | 504 | function wp_lostpassword_url( $redirect = '' ) { |
505 | 505 | $args = array( 'action' => 'lostpassword' ); |
506 | 506 | if ( !empty($redirect) ) { |
507 | | $args['redirect_to'] = $redirect; |
| 507 | $args['redirect_to'] = urlencode( $redirect ); |
508 | 508 | } |
509 | 509 | |
510 | 510 | $lostpassword_url = add_query_arg( $args, network_site_url('wp-login.php', 'login') ); |