WordPress.org

Make WordPress Core

Ticket #10741: include-userip-lostpassword.patch

File include-userip-lostpassword.patch, 813 bytes (added by mr.slay, 5 years ago)
  • wp-login.php

     
    159159        } 
    160160        $message = __('Someone has asked to reset the password for the following site and username.') . "\r\n\r\n"; 
    161161        $message .= get_option('siteurl') . "\r\n\r\n"; 
    162         $message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n"; 
     162        $message .= sprintf(__('Username: %s'), $user_login) . "\r\n"; 
     163        $message .= sprintf(__('User\'s IP: %s'), $_SERVER['REMOTE_ADDR']) . "\r\n\r\n"; 
    163164        $message .= __('To reset your password visit the following address, otherwise just ignore this email and nothing will happen.') . "\r\n\r\n"; 
    164165        $message .= site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login') . "\r\n"; 
    165166