[wp-trac] [WordPress Trac] #58194: Users: Don't show 'Reset Password' link if password reset is not allowed

WordPress Trac noreply at wordpress.org
Wed Apr 26 07:28:18 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          |   Keywords:  good-first-bug
  Focuses:  administration  |
----------------------------+----------------------------
 With the
 [https://developer.wordpress.org/reference/hooks/allow_password_reset/
 allow_password_reset] filter it's possible to disallow a password reset
 per user. The value of this filter is not checked when adding the 'Reset
 Password' link to the list table actions added in #34281. In such cases
 you still get a "Password reset link sent." notice but no email is
 actually sent.

 Relevant part in core: https://core.trac.wordpress.org/browser/trunk/src
 /wp-admin/includes/class-wp-users-list-
 table.php?rev=55276&marks=502-507#L502

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58194>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list