$message = __('Someone requested that the password be reset for the following account:') . "
";
$message .= network_home_url( '/' ) . "
";
$message .= sprintf(__('Username: %s'), $user_login) . "
";
$message .= __('If this was a mistake, just ignore this email and nothing will happen.') . "
";
$message .= __('To reset your password, visit the following address:') . "
";
$message .= '<' . network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login') . ">
";
The email I got link without wp-login.php
Someone requested that the password be reset for the following account:
Username: test12
If this was a mistake, just ignore this email and nothing will happen.
To reset your password, visit the following address:
<http://localhost.com?action=rp&key=$P$Btka6BPNxTtMA2ohCF4bLMwaQ0pXHc/&login=test12>
I debugged and found that system is checking if link having wp-login.php then remove this file name from link and send mail. Is there any file in which we can check?