X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/177fd6fefd2e3d5a0ea6591c71d660cabdb3c1a4..96bc8e88cf39086a9e0a883b8e2c311fe82a5e97:/wp-admin/user-edit.php diff --git a/wp-admin/user-edit.php b/wp-admin/user-edit.php index 9c298dda..5f3d07e0 100644 --- a/wp-admin/user-edit.php +++ b/wp-admin/user-edit.php @@ -1,95 +1,105 @@ - -add_help_tab( array( + 'id' => 'overview', + 'title' => __('Overview'), + 'content' => $profile_help, +) ); -if ( $is_profile_page ) { - add_action('admin_head', 'profile_js'); - wp_enqueue_script('jquery'); - wp_enqueue_script('password-strength-meter'); -} +get_current_screen()->set_help_sidebar( + '
' . __('For more information:') . '
' . + '' . __('Documentation on User Profiles') . '
' . + '' . __('Support Forums') . '
' +); -$title = $is_profile_page? __('Profile') : __('Edit User'); -if ( current_user_can('edit_users') && !$is_profile_page ) - $submenu_file = 'users.php'; -else - $submenu_file = 'profile.php'; -$parent_file = 'users.php'; +$wp_http_referer = remove_query_arg(array('update', 'delete_count'), stripslashes($wp_http_referer)); -wp_reset_vars(array('action', 'redirect', 'profile', 'user_id', 'wp_http_referer')); +$user_can_edit = current_user_can( 'edit_posts' ) || current_user_can( 'edit_pages' ); -$wp_http_referer = remove_query_arg(array('update', 'delete_count'), stripslashes($wp_http_referer)); +/** + * Optional SSL preference that can be turned on by hooking to the 'personal_options' action. + * + * @since 2.7.0 + * + * @param object $user User data object + */ +function use_ssl_preference($user) { +?> +