[wp-trac] [WordPress Trac] #16293: In multisite installs, users with id 1 or 2 can't be deleted

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 28 07:19:53 UTC 2011


#16293: In multisite installs, users with id 1 or 2 can't be deleted
----------------------------------------------+----------------------------
 Reporter:  PeteMall                          |       Owner:
     Type:  defect (bug)                      |      Status:  new
 Priority:  normal                            |   Milestone:  Future
Component:  Multisite                         |  Release
 Severity:  normal                            |     Version:  3.1
 Keywords:  3.2-early dev-feedback has-patch  |  Resolution:
----------------------------------------------+----------------------------
Changes (by garyc40):

 * keywords:  3.2-early dev-feedback needs-patch => 3.2-early dev-feedback
     has-patch


Comment:

 hughestm's approach won't work, because deleting super admins is currently
 not allowed.

 What we need to do is change:

 {{{
 if ( $id != '0' && $id != '1' ) {
 }}}

 to

 {{{
 if ( ! is_super_admin( $id ) ) {
 }}}

 Then hughestm can change site option admin_email to something else, demote
 user with id 0 or 1 to a normal user, and delete him as usual.

 This is not very straight forward process, so maybe it's better to allow
 deletion of super admins. The patch I attached does this. It really needs
 a sanity check.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16293#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list