Home  >  Article  >  Backend Development  >  WordPress sends registered users a password setting email prompt: Your password reset link is invalid, please request a new link below

WordPress sends registered users a password setting email prompt: Your password reset link is invalid, please request a new link below

不言
不言Original
2018-07-07 14:25:292460browse

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 6580843315dd7804e35fd3743df832ea 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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn