[wp-trac] [WordPress Trac] #41672: REST create user: existing_user_login is returned before existing_user_email
WordPress Trac
noreply at wordpress.org
Thu Apr 29 12:58:17 UTC 2021
#41672: REST create user: existing_user_login is returned before
existing_user_email
-------------------------------------------------+-------------------------
Reporter: bbrian | Owner: shooper
Type: enhancement | Status: assigned
Priority: normal | Milestone: 5.8
Component: Users | Version: 4.7
Severity: normal | Resolution:
Keywords: good-first-bug 2nd-opinion has- | Focuses: rest-api
patch has-unit-tests |
-------------------------------------------------+-------------------------
Comment (by bartj):
I've looked into this and it appears, that nowadays REST API returns the
following messages in correct order: firstly it informs if email is
duplicated, then login.
Despite that, I agree, it would be better to return 409 in HTTP response
than Server Error.
I've refreshed patch, adding only more meaningful response and tests for
that.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41672#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list