[wp-trac] [WordPress Trac] #40497: wp_insert_user requires user_login when ID is given

WordPress Trac noreply at wordpress.org
Sat Apr 22 12:23:20 UTC 2017

#40497: wp_insert_user requires user_login when ID is given
 Reporter:  johnprestonsoapmedia                 |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Users                                |  Review
 Severity:  normal                               |     Version:
 Keywords:  needs-patch reporter-feedback 2nd-   |  Resolution:
  opinion                                        |     Focuses:
Changes (by johnbillion):

 * keywords:   => needs-patch reporter-feedback 2nd-opinion
 * version:  trunk =>


 Thanks for the report, @johnprestonsoapmedia, and welcome to WordPress

 This does appear to be valid, but the same issue is not present when you
 call the `wp_update_user()` function which you should ideally use when
 updating a user. Is there a particular reason in this scenario why you're
 not using `wp_update_user()`?

 Regardless, it looks on the surface like this should be fixed.

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

More information about the wp-trac mailing list