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

WordPress Trac noreply at wordpress.org
Mon Nov 20 18:06:13 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:  good-first-bug 2nd-opinion has-      |  Resolution:
  patch has-unit-tests                           |     Focuses:  rest-api
-------------------------------------------------+-------------------------
Changes (by shooper):

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


Comment:

 The patch I just attached takes @sconzof's patch and adds to it an HTTP
 409 (Conflict) response code.  This is the same approach used when adding
 a term with an existing name via the RET API.

 This patch also adds unit tests.

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


More information about the wp-trac mailing list