Opened 7 years ago
Closed 7 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 |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.3 |
| Component: | Users | Version: | 3.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | administration, multisite |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Introduced in [16767]. A few similar instances were fixed in [26115], but this one was missed for some reason.