X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/849f15aeed7a5e39314057bdc0064d8edd60dd7d..8ab4a4532479e8db471032b51042ec8c4716d091:/wp-admin/network/user-new.php diff --git a/wp-admin/network/user-new.php b/wp-admin/network/user-new.php index 5c671403..b47e74cc 100644 --- a/wp-admin/network/user-new.php +++ b/wp-admin/network/user-new.php @@ -26,14 +26,15 @@ get_current_screen()->add_help_tab( array( get_current_screen()->set_help_sidebar( '

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

' . - '

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

' . + '

' . __('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.' ) ); + wp_die( __( 'You do not have permission to access this page.' ), 403 ); if ( ! is_array( $_POST['user'] ) ) wp_die( __( 'Cannot create an empty user.' ) ); @@ -73,7 +74,7 @@ require( ABSPATH . 'wp-admin/admin-header.php' ); ?>

' . $msg . '

'; + echo '

' . $msg . '

'; } if ( isset( $add_user_errors ) && is_wp_error( $add_user_errors ) ) { ?> @@ -87,12 +88,12 @@ if ( isset( $add_user_errors ) && is_wp_error( $add_user_errors ) ) { ?>
- - + + - - + +