Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#47119 closed defect (bug) (fixed)

Can't revoke super admin if email is different case from network admin

Reported by: trepmal's profile trepmal Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 5.3 Priority: normal
Severity: normal Version: 3.1
Component: Users Keywords: has-patch
Focuses: administration, multisite Cc:

Description (last modified by SergeyBiryukov)

In multisite, if a Super Admin's email is a case-insensitive match to the Network Admin email, the checkbox for revoking super-admin shows, but doesn't work.


  • set Network Admin email to Admin@example.test
  • set a Super Admin's email to admin@example.test
  • attempt to revoke super admin from same user

This will fail because of the case-insensitive comparison here:

In typical circumstances (when emails do not have a case difference) the checkbox doesn't show because of comparison here:

Looks like this has been an issue since about 3.1, maybe older.

relevant commits: [26115], [16767]

Attachments (1)

47119.diff (900 bytes) - added by trepmal 4 years ago.

Download all attachments as: .zip

Change History (4)

4 years ago

#1 @SergeyBiryukov
4 years ago

  • Component changed from Administration to Users
  • Description modified (diff)
  • Focuses administration multisite added
  • Milestone changed from Awaiting Review to 5.3
  • Owner set to SergeyBiryukov
  • Status changed from new to reviewing

#2 @SergeyBiryukov
4 years ago

Introduced in [16767]. A few similar instances were fixed in [26115], but this one was missed for some reason.

#3 @SergeyBiryukov
4 years ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

In 45698:

Users: Use case-insensitive email address comparison when checking whether "Grant this user super admin privileges" checkbox should be displayed on Edit User screen.

Props trepmal.
Fixes #47119.

Note: See TracTickets for help on using tickets.