X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/9e77185fafaf4e60e2b73821e0e4b9b1a11fb85f..7f1521bf193b382565eb753043c161f4cb3fcda7:/wp-admin/users.php diff --git a/wp-admin/users.php b/wp-admin/users.php index c83dbaa6..27e264ca 100644 --- a/wp-admin/users.php +++ b/wp-admin/users.php @@ -10,14 +10,14 @@ require_once( dirname( __FILE__ ) . '/admin.php' ); if ( ! current_user_can( 'list_users' ) ) - wp_die( __( 'Cheatin’ uh?' ) ); + wp_die( __( 'Cheatin’ uh?' ), 403 ); $wp_list_table = _get_list_table('WP_Users_List_Table'); $pagenum = $wp_list_table->get_pagenum(); $title = __('Users'); $parent_file = 'users.php'; -add_screen_option( 'per_page', array('label' => _x( 'Users', 'users per page (screen options)' )) ); +add_screen_option( 'per_page' ); // contextual help - choose Help on the top right of admin panel to preview this. get_current_screen()->add_help_tab( array( @@ -58,8 +58,8 @@ unset( $help ); get_current_screen()->set_help_sidebar( '
' . __('For more information:') . '
' . - '' . __('Documentation on Managing Users') . '
' . - '' . __('Descriptions of Roles and Capabilities') . '
' . + '' . __('Documentation on Managing Users') . '
' . + '' . __('Descriptions of Roles and Capabilities') . '
' . '' . __('Support Forums') . '
' ); @@ -128,7 +128,7 @@ case 'promote': // If the user doesn't already belong to the blog, bail. if ( is_multisite() && !is_user_member_of_blog( $id ) ) - wp_die(__('Cheatin’ uh?')); + wp_die( __( 'Cheatin’ uh?' ), 403 ); $user = get_userdata( $id ); $user->set_role($_REQUEST['new_role']); @@ -209,18 +209,24 @@ case 'delete': include( ABSPATH . 'wp-admin/admin-header.php' ); ?> -