[wp-trac] [WordPress Trac] #32684: wp_update_user() is the 'user_email' now a required $userdata arg for updating a user ?

WordPress Trac noreply at wordpress.org
Thu Jun 18 13:29:43 UTC 2015


#32684: wp_update_user() is the 'user_email' now a required $userdata arg for
updating a user ?
--------------------------+---------------------------
 Reporter:  imath         |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.3
Component:  Users         |     Version:  trunk
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |     Focuses:
--------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"32838"]:
 {{{
 #!CommitTicketReference repository="" revision="32838"
 When updating a user, only send email-change notification if email address
 is passed.

 The notification, introduced in [32380], was firing incorrectly (and
 throwing
 a PHP notice) when `wp_update_user()` was called without including
 'user_email'
 in the update data.

 Props imath.
 Fixes #32684. See #32430.
 }}}

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


More information about the wp-trac mailing list