[wp-trac] [WordPress Trac] #53634: Editing user in Dashboard and using "Send Reset Link " broken by retrieve_password()

WordPress Trac noreply at wordpress.org
Tue Jun 21 21:45:57 UTC 2022


#53634: Editing user in Dashboard and using "Send Reset Link " broken by
retrieve_password()
--------------------------------------+------------------------------
 Reporter:  boblindner                |       Owner:  pbearne
     Type:  defect (bug)              |      Status:  assigned
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Users                     |     Version:
 Severity:  major                     |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------------
Changes (by pbearne):

 * keywords:  has-patch needs-testing => has-patch has-unit-tests


Comment:

 I was able to fix this by just changing what (to the email from the
 username) we passed to the retrieve_password

 But looking at this there an optimization to be done as we can pass the
 whole WP_User object to retrieve_password as this first action to get the
 object so I have done that in this ticket (which would fix this ticket as
 well)
 https://core.trac.wordpress.org/ticket/56028

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53634#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list