WordPress.org

Make WordPress Core

Changeset 16563


Ignore:
Timestamp:
11/24/2010 08:06:38 AM (8 years ago)
Author:
PeteMall
Message:

Ignore role selector in network admin user-edit. See #14435.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/user-edit.php

    r16448 r16563  
    132132    if ( $user_id != $current_user->ID ) {
    133133        $cap = $wpdb->get_var( "SELECT meta_value FROM {$wpdb->usermeta} WHERE user_id = '{$user_id}' AND meta_key = '{$blog_prefix}capabilities' AND meta_value = 'a:0:{}'" );
    134         if ( null == $cap && $_POST[ 'role' ] == '' ) {
     134        if ( !is_network_admin() && null == $cap && $_POST[ 'role' ] == '' ) {
    135135            $_POST[ 'role' ] = 'contributor';
    136136            $delete_role = true;
Note: See TracChangeset for help on using the changeset viewer.