Opened 8 years ago
Closed 8 years ago
#32935 closed defect (bug) (fixed)
Deleting a super admin user via wpmu_delete_user should not be possible
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.3 | Priority: | normal |
Severity: | normal | Version: | 3.0 |
Component: | Users | Keywords: | has-patch |
Focuses: | multisite | Cc: |
Description
We restrict super admins from deletion in the UI and should follow that same guideline in wpmu_delete_user()
as well to avoid possible confusion.
Attachments (2)
Change History (5)
#2
@
8 years ago
32935.2.diff updates the tests a bit to manage the global super admins. My VM is being strange right now, so I'm not sure they pass.
Note: See
TracTickets for help on using
tickets.
32935.diff uses the same method as
wp-admin/network/users.php
to determine if the user being deleted is a member of the super admins group before continuing. Also adds tests for the deletion of super admins.