[wp-trac] [WordPress Trac] #52976: user emails comparison should be case insensitive
WordPress Trac
noreply at wordpress.org
Sun Jan 18 12:03:27 UTC 2026
#52976: user emails comparison should be case insensitive
-------------------------------------------------+-------------------------
Reporter: asaifm | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Users | Version: 4.3
Severity: normal | Resolution:
Keywords: good-first-bug has-patch needs- | Focuses:
testing |
-------------------------------------------------+-------------------------
Comment (by showravhasan):
I reviewed [https://github.com/WordPress/wordpress-develop/pull/9196 PR
#9196] and the approach using strcasecmp() for case-insensitive email
comparisons looks correct. This aligns with how other parts of WordPress
Core already handle email comparisons (as noted in comment 4 by @dd32).
The fix properly addresses the issue where users receive unnecessary
"email changed" notifications when only the letter casing differs (e.g.,
User at Example.com vs user at example.com).
While RFC 5321 technically allows case-sensitive local parts, virtually
all mail servers treat emails as case-insensitive. This change improves
user experience without breaking compatibility.
+1 for committing this patch. The PR has been open for 7 months and would
benefit from a review from a committer.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52976#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list