Skip to:
Content

BuddyPress.org

Changeset 3059


Ignore:
Timestamp:
06/20/2010 09:48:39 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Fix #2414

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-core.php

    r3057 r3059  
    17141714        return false;
    17151715
     1716    /* Site admins cannot be deleted */
     1717    if ( is_site_admin( bp_core_get_username( $user_id ) ) )
     1718        return false;
     1719
    17161720    /* Specifically handle multi-site environment */
    17171721    if ( bp_core_is_multisite() ) {
    1718         /* Site admins cannot be deleted */
    1719         if ( is_site_admin( bp_core_get_username( $user_id ) ) )
    1720             return false;
    1721 
    17221722        if ( $wp_version >= '3.0' )
    17231723            require_once( ABSPATH . '/wp-admin/includes/ms.php' );
     
    17281728
    17291729        return wpmu_delete_user( $user_id );
    1730     }
    17311730
    17321731    /* Single site user deletion */
    1733     require_once( ABSPATH . '/wp-admin/includes/user.php' );
    1734     return wp_delete_user( $user_id );
     1732    } else {
     1733        require_once( ABSPATH . '/wp-admin/includes/user.php' );
     1734        return wp_delete_user( $user_id );
     1735    }
    17351736}
    17361737
Note: See TracChangeset for help on using the changeset viewer.