X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/38ca813a0e312e2768e5b9519f0415cd0aa84781..refs/tags/wordpress-3.4:/wp-admin/user-edit.php diff --git a/wp-admin/user-edit.php b/wp-admin/user-edit.php index 6334ed81..dfc878dd 100644 --- a/wp-admin/user-edit.php +++ b/wp-admin/user-edit.php @@ -36,19 +36,24 @@ if ( current_user_can('edit_users') && !is_user_admin() ) else $parent_file = 'profile.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.') . '

' . +$profile_help = '

' . __('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. You can hide the Toolbar (formerly called the Admin Bar) from the front end of your site, however it cannot be disabled on the admin screens.') . '

' . + '

' . __('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.') . '

'; + +get_current_screen()->add_help_tab( array( + 'id' => 'overview', + 'title' => __('Overview'), + 'content' => $profile_help, +) ); + +get_current_screen()->set_help_sidebar( '

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

' . '

' . __('Documentation on User Profiles') . '

' . '

' . __('Support Forums') . '

' ); - $wp_http_referer = remove_query_arg(array('update', 'delete_count'), stripslashes($wp_http_referer)); $user_can_edit = current_user_can( 'edit_posts' ) || current_user_can( 'edit_pages' ); @@ -69,7 +74,6 @@ function use_ssl_preference($user) { ID && ! apply_filters( 'enable_edit_any_user_configuration', true ) ) wp_die( __( 'You do not have permission to edit this user.' ) ); @@ -156,7 +160,11 @@ include (ABSPATH . 'wp-admin/admin-header.php');
+ +

+

+

@@ -213,14 +221,12 @@ if ( !( IS_PROFILE_PAGE && !$user_can_edit ) ) : ?> - -
+ +

-
+ID ) ); ?> /> +
+
@@ -256,7 +262,7 @@ if ( $user_role ) else echo ''; ?> - + @@ -313,7 +319,7 @@ if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_c foreach ( $public_display as $id => $item ) { ?> - + @@ -424,4 +430,3 @@ break;