[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
Wed Nov 9 22:22:18 UTC 2016


#38334: Login: Pass the `$user_data` object as a parameter to the
`lostpassword_post` hook
------------------------------------+------------------------------
 Reporter:  pagewidth               |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Login and Registration  |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  needs-patch             |     Focuses:
------------------------------------+------------------------------
Changes (by johnbillion):

 * keywords:   => needs-patch
 * version:  4.6.1 =>


Comment:

 Thanks for the ticket, @pagewidth .

 @lukecavanagh The inline docs for the action will need updating (bearing
 in mind that `$user_data` can be boolean false or a `WP_User` object. In
 addition, if the first condition in the function is true (an empty value
 for `$_POST['user_login']`) then the `$user_data` variable won't be
 defined.

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


More information about the wp-trac mailing list