[wp-trac] [WordPress Trac] #58917: Email Sending validation doesn't occur when password reset is sent from the Users page
WordPress Trac
noreply at wordpress.org
Tue Mar 3 10:56:37 UTC 2026
#58917: Email Sending validation doesn't occur when password reset is sent from the
Users page
-----------------------------------------+------------------------------
Reporter: rajinsharwar | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version:
Severity: normal | Resolution:
Keywords: has-patch changes-requested | Focuses:
-----------------------------------------+------------------------------
Changes (by ozgursar):
* keywords: has-patch needs-testing => has-patch changes-requested
Comment:
== Patch Testing Report
Patch Tested: https://github.com/WordPress/wordpress-develop/pull/4921
=== Environment
- WordPress: 7.0-beta2-61752-src
- PHP: 8.2.29
- Server: nginx/1.29.4
- Database: mysqli (Server: 8.4.7 / Client: mysqlnd 8.2.29)
- Browser: Chrome 145.0.0.0
- OS: macOS
- Theme: Twenty Twenty-Five 1.4
- MU Plugins: None activated
- Plugins:
* Code Snippets 3.9.5
* Test Reports 1.2.1
=== Steps taken
1. Add the following snippet to `functions.php` or via `Code Snippets`
plugin to cause intentional email failure.
{{{
add_action( 'phpmailer_init', function( $phpmailer ) {
$phpmailer->isSMTP();
$phpmailer->Host = 'invalid.smtp.host';
$phpmailer->Port = 587;
});
}}}
2. Use `/wp-login.php?action=lostpassword` to remind a password for a user
3. Confirm that the following message is displayed:
{{{
Error: The email could not be sent. Your site may not be correctly
configured to send emails. Get support for resetting your password.
}}}
4. In Dashboard Users > All Users page, click `Send password reset` of any
user
5. Confirm the following message is displayed:
{{{
Password reset links sent to 0 users.
}}}
6. Apply the patch and test both `/wp-login.php?action=lostpassword` and
dashboard password reminder screens
7. ❌ Patch is failing.
=== Expected result
- We expect to see the an error message displayed on the Users > All Users
page similar to the one displayed on the login lost password screen.
=== Screenshots/Screencast with results
Error message on the `/wp-login.php?action=lostpassword` screen
[[Image(https://i.imgur.com/y0oecx8.png)]]
Admin dashboard `Users > All Users` before applying patch
[[Image(https://i.imgur.com/eJVqUhP.png)]]
Admin dashboard `Users > All Users` after applying patch
[[Image(https://i.imgur.com/GMxcF0f.png)]]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58917#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list