Password reset link not compatible with content_type of text/html
-
A plugin sets email content_type set to HTML as follows:
add_filter('wp_mail_content_type','set_contenttype'); function set_contenttype($content_type){ return 'text/html'; }
Now password reset email does not display the link to click back to change the password because in wp-login.php the retrieve_password() function puts angle brackets around the link.
$message .= '<' . network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login') . ">\r\n";
Is the plugin setting email content_type improperly or should the email message formatting in retrieve_password() be changed?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Password reset link not compatible with content_type of text/html’ is closed to new replies.