[wp-trac] [WordPress Trac] #41672: REST create user: existing_user_login is returned before existing_user_email

WordPress Trac noreply at wordpress.org
Sat Aug 19 20:21:47 UTC 2017


#41672: REST create user: existing_user_login is returned before
existing_user_email
-------------------------------------------------+-------------------------
 Reporter:  bbrian                               |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Users                                |  Review
 Severity:  normal                               |     Version:  4.7
 Keywords:  needs-unit-tests good-first-bug      |  Resolution:
  2nd-opinion has-patch                          |     Focuses:  rest-api
-------------------------------------------------+-------------------------
Changes (by sconzof):

 * keywords:  needs-patch needs-unit-tests good-first-bug 2nd-opinion =>
     needs-unit-tests good-first-bug 2nd-opinion has-patch


Comment:

 I have uploaded a patch [attachment:41672.diff]  that would return the
 `existing_user_email` error, instead of the `existing_user_login` error,
 if both the username and email already exist. This patch can be used if
 that is deemed an appropriate direction to take for this enhancement
 request.

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


More information about the wp-trac mailing list