WordPress.org

Make WordPress Core

Changeset 39945


Ignore:
Timestamp:
01/24/2017 11:39:01 AM (16 months ago)
Author:
flixos90
Message:

Multisite: Replace is_super_admin() with manage_network_users when trying to import new users.

Props bhargavbhandari90.
Fixes #39212. See #37616.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ms.php

    r39326 r39945  
    705705 */
    706706function check_import_new_users( $permission ) {
    707     if ( !is_super_admin() )
     707    if ( ! current_user_can( 'manage_network_users' ) ) {
    708708        return false;
     709    }
     710
    709711    return true;
    710712}
Note: See TracChangeset for help on using the changeset viewer.