Opened 5 years ago
Closed 5 years ago
#47119 closed defect (bug) (fixed)
Can't revoke super admin if email is different case from network admin
Reported by: | trepmal | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.3 | Priority: | normal |
Severity: | normal | Version: | 3.1 |
Component: | Users | Keywords: | has-patch |
Focuses: | administration, multisite | Cc: |
Description (last modified by )
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.
Reproduction:
- 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:
https://core.trac.wordpress.org/browser/trunk/src/wp-includes/capabilities.php#L922
In typical circumstances (when emails do not have a case difference) the checkbox doesn't show because of comparison here:
https://core.trac.wordpress.org/browser/trunk/src/wp-admin/user-edit.php#L420
Looks like this has been an issue since about 3.1, maybe older.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Introduced in [16767]. A few similar instances were fixed in [26115], but this one was missed for some reason.