From 720667d914e76ece742a469b0d8e54c00b0b6eca Mon Sep 17 00:00:00 2001 From: nacin Date: Thu, 27 May 2010 23:10:26 +0000 Subject: [PATCH] Users help. props dragoonis. see #13467. git-svn-id: http://svn.automattic.com/wordpress/trunk@15011 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/user-edit.php | 13 +++++++++++++ wp-admin/user-new.php | 17 +++++++++++++++++ wp-admin/users.php | 11 +++++++++++ 3 files changed, 41 insertions(+) diff --git a/wp-admin/user-edit.php b/wp-admin/user-edit.php index 368437aa3..2aae64b60 100644 --- a/wp-admin/user-edit.php +++ b/wp-admin/user-edit.php @@ -33,6 +33,19 @@ else $submenu_file = 'profile.php'; $parent_file = 'users.php'; +// contextual help - choose Help on the top right of admin panel to preview this. +add_contextual_help($current_screen, + '

' . __('Your profile contains information about you (your "account") as well as some personal options related to using WordPress.') . '

' . + '

' . __('You can change your password, turn on keyboard shortcuts, change the color scheme of your WordPress administration screens, and turn off the WYSIWYG (Visual) editor, among other things.') . '

' . + '

' . __('Your username cannot be changed, but you can use other fields to enter your real name or a nickname, and change which name to display on your posts.') . '

' . + '

' . __('Required fields are indicated; the rest are optional. Profile information will only be displayed if your theme is set up to do so.') . '

' . + '

' . __('Remember to click the Update Profile button when you are finished.') . '

' . + '

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

' . + '

' . __('User Profile') . '

' . + '

' . __('Support Forums') . '

' +); + + $wp_http_referer = remove_query_arg(array('update', 'delete_count'), stripslashes($wp_http_referer)); $all_post_caps = array('posts', 'pages'); diff --git a/wp-admin/user-new.php b/wp-admin/user-new.php index 948624101..3663110f6 100644 --- a/wp-admin/user-new.php +++ b/wp-admin/user-new.php @@ -108,6 +108,23 @@ if ( isset($_REQUEST['action']) && 'adduser' == $_REQUEST['action'] ) { $title = __('Add New User'); $parent_file = 'users.php'; +add_contextual_help($current_screen, + '

' . __('To add a new user to your site, fill in the form on this screen. If you’re not sure which role to assign, you can use the link below to review the different roles and their capabilities. Here is a basic overview of roles:') . '

' . + '' . + '

' . __('You must assign a password to the new user, but don’t worry; when they log in for the first time they will be prompted to change it. The username, however, cannot be changed.') . '

' . + '

' . __('New users will receive an email letting them know they’ve been added as a user for your site. By default, this email will also contain their password. Uncheck the box if you do not the password to be included in the welcome email.') . '

' . + '

' . __('Remember to click the Add User button at the bottom of this screen when you are finished.') . '

' . + '

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

' . + '

' . __('Add New Users') . '

' . + '

' . __('Support Forums') . '

' +); + wp_enqueue_script('wp-ajax-response'); wp_enqueue_script('user-profile'); wp_enqueue_script('password-strength-meter'); diff --git a/wp-admin/users.php b/wp-admin/users.php index 065a472c6..0c33290b7 100644 --- a/wp-admin/users.php +++ b/wp-admin/users.php @@ -18,6 +18,17 @@ if ( !current_user_can('list_users') ) $title = __('Users'); $parent_file = 'users.php'; +// contextual help - choose Help on the top right of admin panel to preview this. +add_contextual_help($current_screen, + '

' . __('This screen lists all the existing users for your site. Each user has one of five defined roles as set by the site admin: Site Administrator, Editor, Author, Contributor, or Subscriber. Users with roles other than Administrator will see fewer options when they are logged in, based on their role.') . '

' . + '

' . __('You can customize the display of information on this screen as you can on other screens, by using the Screen Options tab and the on-screen filters.') . '

' . + '

' . __('To add a new user for your site, click the Add New button at the top of the screen or Add New in the Appearance menu section.') . '

' . + '

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

' . + '

' . __('Documentation on Authors and Users') . '

' . + '

' . __('Roles and Capabilities Descriptions') . '

' . + '

' . __('Support Forums') . '

' +); + $update = $doaction = ''; if ( isset($_REQUEST['action']) ) $doaction = $_REQUEST['action'] ? $_REQUEST['action'] : $_REQUEST['action2'];