X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/784f914b1e4b1c62d6657e86397c2e83bcee4295..16e7b37c7914d753890c1a05a9335f3b43751eb8:/wp-admin/network/user-new.php diff --git a/wp-admin/network/user-new.php b/wp-admin/network/user-new.php index 8381e4d8..52941e29 100644 --- a/wp-admin/network/user-new.php +++ b/wp-admin/network/user-new.php @@ -10,11 +10,8 @@ /** Load WordPress Administration Bootstrap */ require_once( dirname( __FILE__ ) . '/admin.php' ); -if ( ! is_multisite() ) - wp_die( __( 'Multisite support is not enabled.' ) ); - if ( ! current_user_can('create_users') ) - wp_die(__('You do not have sufficient permissions to add users to this network.')); + wp_die(__('Sorry, you are not allowed to add users to this network.')); get_current_screen()->add_help_tab( array( 'id' => 'overview', @@ -26,15 +23,15 @@ get_current_screen()->add_help_tab( array( get_current_screen()->set_help_sidebar( '

' . __('For more information:') . '

' . - '

' . __('Documentation on Network Users') . '

' . - '

' . __('Support Forums') . '

' + '

' . __('Documentation on Network Users') . '

' . + '

' . __('Support Forums') . '

' ); if ( isset($_REQUEST['action']) && 'add-user' == $_REQUEST['action'] ) { check_admin_referer( 'add-user', '_wpnonce_add-user' ); if ( ! current_user_can( 'manage_network_users' ) ) - wp_die( __( 'You do not have permission to access this page.' ), 403 ); + wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); if ( ! is_array( $_POST['user'] ) ) wp_die( __( 'Cannot create an empty user.' ) );