[wp-trac] [WordPress Trac] #38334: Login: Pass the `$user_data` object as a parameter to the `lostpassword_post` hook

WordPress Trac noreply at wordpress.org
Mon Nov 18 07:08:54 UTC 2019


#38334: Login: Pass the `$user_data` object as a parameter to the
`lostpassword_post` hook
-------------------------------------------------+-------------------------
 Reporter:  pagewidth                            |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Login and Registration               |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  good-first-bug has-patch needs-      |     Focuses:
  refresh                                        |
-------------------------------------------------+-------------------------

Comment (by wpgurudev):

 @kkarpieszuk While your suggestion is valid, it is not very handy way to
 handle the mentioned use case and others. We are anyways passing
 `$user_data` variable to other hooks so we should pass variable for
 `lostpassword_post` hook as well; instead of determining user from $_POST
 variable.

 Submitting the patch with updated doc.

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


More information about the wp-trac mailing list