Make WordPress Core

Ticket #40728: 40728.diff

File 40728.diff, 842 bytes (added by adhun, 8 years ago)

Patch File for urlencode on wp_lostpassword_url( )

  • wp-includes/general-template.php

    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() ) { 
    504504function wp_lostpassword_url( $redirect = '' ) {
    505505        $args = array( 'action' => 'lostpassword' );
    506506        if ( !empty($redirect) ) {
    507                 $args['redirect_to'] = $redirect;
     507                $args['redirect_to'] = urlencode( $redirect );
    508508        }
    509509
    510510        $lostpassword_url = add_query_arg( $args, network_site_url('wp-login.php', 'login') );