Index: wp-includes/user.php =================================================================== --- wp-includes/user.php (revision 22397) +++ wp-includes/user.php (working copy) @@ -1541,3 +1541,76 @@ ); return apply_filters( 'user_contactmethods', $user_contactmethods, $user ); } + +/** + * Setup the default name fields + * + * @access private + * @since + * + * @return array $user_namefields Array of contact methods and their labels. + */ +function _wp_get_user_namefields() { + $user_namefields = array( + 'user_login' => __('Username'), + 'first_name' => __('First Name'), + 'last_name' => __('Last Name'), + 'nickname' => __('Nickname'), + ); + return apply_filters( 'user_namefields', $user_namefields ); +} + +/** + * Setup the default personal options + * + * @access private + * @since + * + * @return array $user_personal_options Array of personal options and their input code + */ +function _wp_get_user_personal_options( $user_can_edit ) { + global $user_id; + $profileuser = get_user_to_edit( $user_id ); + + if ( rich_edit_exists() && ! ( IS_PROFILE_PAGE && ! $user_can_edit ) ) { // don't bother showing the option if the editor has been removed + $user_personal_options['rich_editing'] = array( + 'name' => 'rich_editing', + 'desc' => __('Visual Editor'), + 'code' => '', + 'scope' => ' scope="row"' + ); + } + + global $_wp_admin_css_colors; + if ( count( $_wp_admin_css_colors ) > 1 && has_action( 'admin_color_scheme_picker' ) ) { + $user_personal_options['admin_color_scheme_picker'] = array( + 'name' => 'admin_color_scheme_picker', + 'desc' => __('Admin Color Scheme'), + 'code' => 'admin_color_scheme_picker', + 'scope' => ' scope="row"' + ); + } + + if ( ! ( IS_PROFILE_PAGE && ! $user_can_edit ) ) { + if ( ! empty( $profileuser->comment_shortcuts ) ) + $checked = checked( 'true', $profileuser->comment_shortcuts, false ); + $user_personal_options['comment_shortcuts'] = array( + 'name' => 'rich_editing', + 'desc' => __('Keyboard Shortcuts'), + 'code' => ' ' . __('More information') + ); + } + + $user_personal_options['admin_bar'] = array( + 'name' => 'show-admin-bar', + 'desc' => __('Show Admin Bar'), + 'code' => '