Ticket #13467: 13467-users_contextual_help.diff
File 13467-users_contextual_help.diff, 5.3 KB (added by , 14 years ago) |
---|
-
user-edit.php
33 33 $submenu_file = 'profile.php'; 34 34 $parent_file = 'users.php'; 35 35 36 // contextual help - choose Help on the top right of admin panel to preview this. 37 add_contextual_help($current_screen, 38 '<p>' . __('Your profile contains information about you (your <em>"account"</em>) as well as some personal options related to using WordPress.') . '</p>' . 39 '<p>' . __('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.') . '</p>' . 40 '<p>' . __('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.') . '</p>' . 41 '<p>' . __('Required fields are indicated; the rest are optional. Profile information will only be displayed if your theme is set up to do so.') . '</p>' . 42 '<p>' . __('Remember to click the Update Profile button when you are finished.') . '</p>' . 43 '<p><strong>' . __('For more information:') . '</strong></p>' . 44 '<p><a target="_blank" href="http://codex.wordpress.org/Users_Your_Profile_SubPanel">' . __('User Profile') . '</a></p>' . 45 '<p><a target="_blank" href="http://wordpress.org/support/">' . __('Support Forums') . '</a></p>' 46 ); 47 48 36 49 $wp_http_referer = remove_query_arg(array('update', 'delete_count'), stripslashes($wp_http_referer)); 37 50 38 51 $all_post_caps = array('posts', 'pages'); -
user-new.php
108 108 $title = __('Add New User'); 109 109 $parent_file = 'users.php'; 110 110 111 add_contextual_help($current_screen, 112 '<p>' . __("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:") . '</p>' . 113 '<ul style="list-style: inside;">' . 114 '<li>' . __('Administrators have access to all the administration features') . '</li>' . 115 '<li>' . __('Editors can publish posts, manage posts as well as manage other people's posts, etc.') . '</li>' . 116 '<li>' . __('Authors can publish and manage their own posts') . '</li>' . 117 '<li>' . __('Contributors can write and manage their posts but not publish posts or upload media files') . '</li>' . 118 '<li>' . __('Subscribers can read comments/comment/receive newsletters, etc.') . '</li>' . 119 '</ul>' . 120 '<p>' . __("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.") . '</p>' . 121 '<p>' . __("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.") . '</p>' . 122 '<p>' . __('Remember to click the Add User button at the bottom of this screen when you are finished.') . '</p>' . 123 '<p><strong>' . __('For more information:') . '</strong></p>' . 124 '<p><a href="http://codex.wordpress.org/Users_Add_New_SubPanel" target="_blank">' . __('Add New Users') . '</a></p>' . 125 '<p><a href="http://wordpress.org/support/" target="_blank">' . __('Support Forums') . '</a></p>' 126 ); 127 111 128 wp_enqueue_script('wp-ajax-response'); 112 129 wp_enqueue_script('user-profile'); 113 130 wp_enqueue_script('password-strength-meter'); -
users.php
18 18 $title = __('Users'); 19 19 $parent_file = 'users.php'; 20 20 21 // contextual help - choose Help on the top right of admin panel to preview this. 22 add_contextual_help($current_screen, 23 '<p>' . __('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 <em>"admin"</em> will see fewer options when they are logged in, based on their role.') . '</p>' . 24 '<p>' . __('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.') . '</p>' . 25 '<p>' . __('To add a new user for your site, click the <em>"Add New"</em> button at the top of the screen or <em>"Add New"</em> in the Appearance menu section.') . '</p>' . 26 '<p><strong>' . __('For more information:') . '</strong></p>' . 27 '<p><a target="_blank" href="http://codex.wordpress.org/Users_Authors_and_Users_SubPanel">' . __('Documentation on Authors and Users') . '</a></p>' . 28 '<p><a target="_blank" href="http://codex.wordpress.org/Roles_and_Capabilities">' . __('Roles and Capabilities Descriptions') . '</a></p>' . 29 '<p><a target="_blank" href="http://wordpress.org/support/">' . __('Support Forums') . '</a></p>' 30 ); 31 21 32 $update = $doaction = ''; 22 33 if ( isset($_REQUEST['action']) ) 23 34 $doaction = $_REQUEST['action'] ? $_REQUEST['action'] : $_REQUEST['action2'];