Make WordPress Core

Ticket #54299: 54299.diff

File 54299.diff, 861 bytes (added by henry.wright, 3 months ago)
  • src/wp-includes/user.php

    diff --git src/wp-includes/user.php src/wp-includes/user.php
    index 55bd546..bfa6773 100644
    function retrieve_password( $user_login = null ) { 
    28302830        $message .= sprintf( __( 'Username: %s' ), $user_login ) . "\r\n\r\n";
    28312831        $message .= __( 'If this was a mistake, ignore this email and nothing will happen.' ) . "\r\n\r\n";
    28322832        $message .= __( 'To reset your password, visit the following address:' ) . "\r\n\r\n";
    2833         $message .= network_site_url( "wp-login.php?action=rp&key=$key&login=" . rawurlencode( $user_login ), 'login' ) . '&wp_lang=' . $locale . "\r\n\r\n";
     2833        $message .= site_url( "wp-login.php?action=rp&key=$key&login=" . rawurlencode( $user_login ), 'login' ) . '&wp_lang=' . $locale . "\r\n\r\n";
    28342834
    28352835        if ( ! is_user_logged_in() ) {
    28362836                $requester_ip = $_SERVER['REMOTE_ADDR'];