[wp-trac] [WordPress Trac] #58194: Users: Don't show 'Reset Password' link if password reset is not allowed
WordPress Trac
noreply at wordpress.org
Fri Jun 9 06:52:07 UTC 2023
#58194: Users: Don't show 'Reset Password' link if password reset is not allowed
--------------------------------------+-----------------------------
Reporter: ocean90 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Users | Version: 5.7
Severity: normal | Resolution:
Keywords: good-first-bug has-patch | Focuses: administration
--------------------------------------+-----------------------------
Comment (by ocean90):
@cshark Thank you for the patch. Based on this I created a
[https://github.com/WordPress/wordpress-develop/pull/4573 new PR] where I
have introduced `wp_is_password_reset_allowed_for_user()` which can be
used to DRY up the code a bit because there's also a link on the profile
page which shouldn't be visible either.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58194#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list