WordPress.org

Make WordPress Core

Ticket #21352: lost_password_multisite_patch.diff

File lost_password_multisite_patch.diff, 1.6 KB (added by philly max, 21 months ago)
  • wp-login.php

     
    223223                $wpdb->update($wpdb->users, array('user_activation_key' => $key), array('user_login' => $user_login)); 
    224224        } 
    225225        $message = __('Someone requested that the password be reset for the following account:') . "\r\n\r\n"; 
    226         $message .= network_home_url( '/' ) . "\r\n\r\n"; 
     226        $message .= home_url( '/' ) . "\r\n\r\n"; 
    227227        $message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n"; 
    228228        $message .= __('If this was a mistake, just ignore this email and nothing will happen.') . "\r\n\r\n"; 
    229229        $message .= __('To reset your password, visit the following address:') . "\r\n\r\n"; 
    230         $message .= '<' . network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login') . ">\r\n"; 
     230        $message .= '<' . site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login') . ">\r\n"; 
    231231 
    232232        if ( is_multisite() ) 
    233233                $blogname = $GLOBALS['current_site']->site_name; 
  • wp-includes/general-template.php

     
    312312                $args['redirect_to'] = $redirect; 
    313313        } 
    314314 
    315         $lostpassword_url = add_query_arg( $args, network_site_url('wp-login.php', 'login') ); 
     315        $lostpassword_url = add_query_arg( $args, site_url('wp-login.php', 'login') ); 
    316316        return apply_filters( 'lostpassword_url', $lostpassword_url, $redirect ); 
    317317} 
    318318