[wp-trac] [WordPress Trac] #44672: REST-API: invalid email on lowercase/uppercase change
WordPress Trac
noreply at wordpress.org
Tue Jan 15 01:53:00 UTC 2019
#44672: REST-API: invalid email on lowercase/uppercase change
--------------------------------------+-----------------------
Reporter: fuchsws | Owner: desrosj
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 5.1
Component: REST API | Version: 4.9.7
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+-----------------------
Changes (by desrosj):
* keywords: has-patch has-unit-tests commit => has-patch has-unit-tests
Comment:
[attachment:"44672.2.diff"] is a different approach that is more aligned
with the check performed in `edit_user()`. `email_exists()` is a case
insensitive lookup.
I also added a test to ensure a user cannot change their email to one that
is assigned to another user if the casing is changed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44672#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list