Make WordPress Core

Ticket #39212: 39212-2.patch

File 39212-2.patch, 508 bytes (added by bhargavbhandari90, 8 years ago)
  • ms.php

     
    704704 * @return bool True if the user has proper permissions, false if they do not.
    705705 */
    706706function check_import_new_users( $permission ) {
    707         if ( !is_super_admin() )
     707        if ( ! current_user_can( 'manage_network_users' ) ) {
    708708                return false;
     709        }       
    709710        return true;
    710711}
    711712// See "import_allow_fetch_attachments" and "import_attachment_size_limit" filters too.