[wp-trac] [WordPress Trac] #58194: Users: Don't show 'Reset Password' link if password reset is not allowed
WordPress Trac
noreply at wordpress.org
Thu Jul 6 12:46:00 UTC 2023
#58194: Users: Don't show 'Reset Password' link if password reset is not allowed
-------------------------------------------------+-------------------------
Reporter: ocean90 | Owner: audrasjb
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.3
Component: Users | Version: 5.7
Severity: normal | Resolution: fixed
Keywords: good-first-bug has-patch needs- | Focuses:
testing | administration
-------------------------------------------------+-------------------------
Changes (by audrasjb):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"56150" 56150]:
{{{
#!CommitTicketReference repository="" revision="56150"
Users: Remove password reset links when the feature is not allowed for a
specific user.
This also introduces `wp_is_password_reset_allowed_for_user()` which
returns `false` when password reset is not allowed for a specific user.
This can be
filtered by developers using the existing `allow_password_reset` hook.
Props ocean90, cshark, robinwpdeveloper, tahmina1du, kraftbj.
Fixes #58194.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58194#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list