Make WordPress Core

Ticket #16293: edit.patch

File edit.patch, 577 bytes (added by Moskjis, 14 years ago)

Test, please: don't have Wordpress Multisite. But, should fix the problem.

  • edit.php

     
    356356
    357357                check_admin_referer( 'deleteuser' );
    358358
    359                 if ( $id != '0' && $id != '1' ) {
     359                $is_super_admin = is_super_admin( $id ); //Boolean true or false
     360                if ( ( true == $is_super_admin AND ( 1 < count( get_super_admins() ) ) ) OR false == $is_super_admin ) {
    360361                        $_POST['allusers'] = array( $id ); // confirm_delete_users() can only handle with arrays
    361362                        $title = __( 'Users' );
    362363                        $parent_file = 'users.php';