This article mainly introduces the email prompt sent by WordPress to registered users to set password: Your password reset link is invalid. Please request a new link below. It has certain reference value. Now share it with everyone. Friends in need can For reference
1. Modify the wp-login.php file in the WP root directory
Modify
$message .= '<' . network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login') . ">\r\n";
to:
$message .=network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login') . "\r\n";
2. The /wp-includes/pluggable.php file
in the WP installation directory will be:
$message .= '<' . network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user->user_login), 'login') . ">\r\n\r\n";
Modify to:
$message .= network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user->user_login), 'login') . "\r\n\r\n";
That is, remove the <,> on the left and right of the two file codes.
The above is the entire content of this article. I hope it will be helpful to everyone's study. For more related content, please pay attention to the PHP Chinese website!
Related recommendations:
How to configure php client (phpredis) and connect to Redis
Use PHPstudy under Windows server Deploy PHP system
The above is the detailed content of WordPress sends registered users a password setting email prompt: Your password reset link is invalid, please request a new link below. For more information, please follow other related articles on the PHP Chinese website!