[wp-trac] [WordPress Trac] #52976: user emails comparison should be case insensitive

WordPress Trac noreply at wordpress.org
Thu Apr 9 07:36:36 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-      |     Focuses:  administration,
  patch has-screenshots has-unit-    |  coding-standards
  tests                              |
-------------------------------------+-------------------------------------
Changes (by gaurangsondagar):

 * focuses:   => administration, coding-standards


Comment:

 Tested the patch:
 https://core.trac.wordpress.org/attachment/ticket/52976/52976.2.diff

 Environment:
 - WordPress: 7.0-RC2
 - PHP: 8.3.30
 - Browser: Chrome
 - Database: MySQL 8.4.8
 - OS: Ubuntu

 Testing Method:
 - Update the user's email from user at example.com to different case
 variations such as:
   - USER at example.com
   - User at example.com
   - User at example.com
 - Check if an email notification is triggered for this change
 - Apply the patch
 - Repeat the same steps with the above variations
 - Verify that no email notification is triggered after applying the patch

 Also tested programmatically using the wp_update_user() function, and it
 behaves as expected.

 Result:
 This confirms that the patch resolves the issue. If the update only
 modifies the letter case, it should not trigger any notification.

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


More information about the wp-trac mailing list