[wp-trac] [WordPress Trac] #53992: Lets add WP_User object to "registration_redirect" filter

WordPress Trac noreply at wordpress.org
Tue Nov 9 23:46:23 UTC 2021


#53992: Lets add WP_User object to "registration_redirect" filter
------------------------------------+----------------------------
 Reporter:  Collizo4sky             |       Owner:  davidbaumwald
     Type:  enhancement             |      Status:  closed
 Priority:  normal                  |   Milestone:  5.9
Component:  Login and Registration  |     Version:
 Severity:  normal                  |  Resolution:  fixed
 Keywords:  has-patch commit        |     Focuses:
------------------------------------+----------------------------
Changes (by davidbaumwald):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"52091" 52091]:
 {{{
 #!CommitTicketReference repository="" revision="52091"
 Login and Registration: Pass `$errors` parameter to
 `registration_redirect` filter.

 On user registration, the `$errors` variable is the result of
 `register_new_user` which contains either the newly registered user's ID
 on success or a `WP_Error` object on failure.  This change passes that
 context to the `registration_redirect` filter.

 Props Collizo4sky, aadilali, mukesh27, audrasjb.
 Fixes #53992.
 }}}

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


More information about the wp-trac mailing list