How To Fix Password Reset Link Not Displaying or Missing in WordPress Emails?

How To Fix Password Reset Link Not Displaying or Missing in WordPress Emails?

There might be a case when you want to reset your WordPress access password. You go to reset, enter either your username or email & ask for password reset link. You receive an email but you don’t see link to initiate reset process. It might happen because your mail server blocks “<” & “>” which appears in that link. Server admins may block this for security purpose which helps to reduce cross site scripting.

Now, you still want link. How to fix it? Here is the trick.

Open up your WordPress folder & edit wp-login.php file in editor.

Now find below line

$message .= ‘<‘ . network_site_url(“wp-login.php?action=rp&key=$key&login=” . rawurlencode($user_login), ‘login’) . “>\r\n”;

You simply have to replace “<” & “>” with “(” & “)”.

Now code will look like below

$message .= ‘(‘ . network_site_url(“wp-login.php?action=rp&key=$key&login=” . rawurlencode($user_login), ‘login’) . “)\r\n”;

.

Leave a Reply

Your email address will not be published. Required fields are marked *

Show Buttons
Hide Buttons
%d bloggers like this: