From 34c9399db8b42f50f728b2f59eb87464b7db1d96 Mon Sep 17 00:00:00 2001 From: Felix Arntz Date: Tue, 24 Jan 2017 11:39:01 +0000 Subject: [PATCH] Multisite: Replace `is_super_admin()` with `manage_network_users` when trying to import new users. Props bhargavbhandari90. Fixes #39212. See #37616. git-svn-id: https://develop.svn.wordpress.org/trunk@39945 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/ms.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/includes/ms.php b/src/wp-admin/includes/ms.php index 0edc308382..254af7f16f 100644 --- a/src/wp-admin/includes/ms.php +++ b/src/wp-admin/includes/ms.php @@ -704,8 +704,10 @@ function _access_denied_splash() { * @return bool True if the user has proper permissions, false if they do not. */ function check_import_new_users( $permission ) { - if ( !is_super_admin() ) + if ( ! current_user_can( 'manage_network_users' ) ) { return false; + } + return true; } // See "import_allow_fetch_attachments" and "import_attachment_size_limit" filters too.