Make WordPress Core

Changeset 16501


Ignore:
Timestamp:
11/20/2010 05:48:35 AM (13 years ago)
Author:
ryan
Message:

Could not bulk edit users in Network Admin due to reversed logic on capability check, and incorrect action included for comparing to nonce. Props beaulebens

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-ms-users-list-table.php

    r16428 r16501  
    1111    function WP_MS_Users_List_Table() {
    1212        parent::WP_List_Table( array(
    13             'plural' => 'users'
     13            'plural' => 'users-network'
    1414        ) );
    1515    }
  • trunk/wp-admin/network/edit.php

    r16329 r16501  
    368368
    369369    case 'allusers':
    370         if ( current_user_can( 'manage_network_users' ) )
     370        if ( !current_user_can( 'manage_network_users' ) )
    371371            wp_die( __( 'You do not have permission to access this page.' ) );
    372372
Note: See TracChangeset for help on using the changeset viewer.