[wp-trac] [WordPress Trac] #21095: Reset password link is in < RESET_URL > - Gmail does not show it.

WordPress Trac noreply at wordpress.org
Mon Nov 20 01:47:41 UTC 2017


#21095: Reset password link is in < RESET_URL > - Gmail does not show it.
--------------------------+----------------------
 Reporter:  tommix        |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Mail          |     Version:  3.4
 Severity:  normal        |  Resolution:  invalid
 Keywords:  close         |     Focuses:
--------------------------+----------------------

Comment (by nicole2292):

 Hi everyone,

 Why hasn't this been fixed in 5 years? (I'm on wordpress 4.9) I understand
 apparently this isn't a bug with wordpress, however if website customers
 cannot reset their password due to the code in the email sent by wordpress
 then that's a massive problem for businesses who use wordpress for their
 websites.

 I'm working on a large site and they are having roughly 5 customer
 complaints per week from those who have tried a password reset and there
 was no link in the email they received. That's not really something which
 we can just ignore because it apparently isn't a bug...

 As editing the core wordpress file wp-login.php is not an option (due to
 auto updates) I have written an override in the theme functions file:

 {{{#!php
 <?php
 //fix missing password reset link in emails
 add_filter("retrieve_password_message", "mapp_custom_password_reset", 99,
 4);

 function mapp_custom_password_reset($message, $key, $user_login,
 $user_data )    {

     $message = __('Someone has requested a password reset for the
 following account:') . "<br><br>";
     $message .= network_home_url( '/' ) . "<br><br>";
     $message .= sprintf(__('%s'), $user_data->user_email) . "<br><br>";
     $message .= __('If this was a mistake, just ignore this email and
 nothing will happen.') . "<br><br>";
     $message .= __('To reset your password use the link below:') .
 "<br><br>";
     $message .= "<a href=".network_site_url("wp-
 login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login')
 .">Click here to reset your password</a><br><br>";
     $message .= "Or copy and paste this link into your
 browser:<br><br>".network_site_url("wp-
 login.php?action=rp&key=$key&login=" . rawurlencode($user_login),
 'login')."<br><br>";

     return $message;
 }
 }}}

 The thing is that we should not have to use a plugin or write an override
 because the wordpress core files are not working as per the customers
 needs. The wordpress files should be correct for all customer email
 clients.

 PLEASE PLEASE PLEASE fix this in the core.

 Thank you very much,

 Nicole

--
Ticket URL: <https://core.trac.wordpress.org/ticket/21095#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list