[wp-trac] [WordPress Trac] #32935: Deleting a super admin user via wpmu_delete_user should not be possible

WordPress Trac noreply at wordpress.org
Thu Jul 9 05:57:19 UTC 2015


#32935: Deleting a super admin user via wpmu_delete_user should not be possible
--------------------------+------------------------
 Reporter:  jeremyfelt    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.3
Component:  Users         |     Version:  3.0
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  multisite
--------------------------+------------------------

Comment (by jeremyfelt):

 [https://core.trac.wordpress.org/attachment/ticket/32935/32935.diff
 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.

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


More information about the wp-trac mailing list