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

不言
Release: 2023-04-02 19:48:02
Original
2605 people have browsed it

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 .= &#39;<&#39; . network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), &#39;login&#39;) . ">\r\n";
Copy after login

to:

$message .=network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), &#39;login&#39;) . "\r\n";
Copy after login

2. The /wp-includes/pluggable.php file
in the WP installation directory will be:

$message .= &#39;<&#39; . network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user->user_login), &#39;login&#39;) . ">\r\n\r\n";
Copy after login

Modify to:

$message .= network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user->user_login), &#39;login&#39;) . "\r\n\r\n";
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!