Index: wp-admin/edit-form-user.php
===================================================================
--- wp-admin/edit-form-user.php (revision 0)
+++ wp-admin/edit-form-user.php (revision 0)
@@ -0,0 +1,364 @@
+
+
+
+
+
+
+
+
+
+
+caps) > count($profileuser->roles) && apply_filters('additional_capabilities_display', true))
+ add_meta_box('additional_capabilities_div', __('Additional Capabilities'), 'user_additional_capabilities_meta_box', $screen, 'normal', 'core');
+
+/**
+* Display user password form fields.
+*
+* @since 2.9.0
+*
+* @param object $user
+*/
+function user_password_meta_box($profileuser) {
+?>
+
+
+
+
+
+
+
+
+get_error_messages() as $message ) echo "- $message
"; ?>
+
+
+
+
Index: wp-admin/includes/template.php
===================================================================
--- wp-admin/includes/template.php (revision 12099)
+++ wp-admin/includes/template.php (working copy)
@@ -3652,7 +3652,7 @@
function screen_layout($screen) {
global $screen_layout_columns;
- $columns = array('dashboard' => 4, 'post' => 2, 'page' => 2, 'link' => 2);
+ $columns = array('dashboard' => 4, 'post' => 2, 'page' => 2, 'link' => 2, 'user-edit' => 2, 'profile' => 2);
$columns = apply_filters('screen_layout_columns', $columns, $screen);
if ( !isset($columns[$screen]) ) {
Index: wp-admin/js/user-profile.dev.js
===================================================================
--- wp-admin/js/user-profile.dev.js (revision 12099)
+++ wp-admin/js/user-profile.dev.js (working copy)
@@ -27,6 +27,17 @@
}
$(document).ready( function() {
+
+ // close postboxes that should be closed
+ jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed');
+
+ // show things that should be visible, hide what should be hidden
+ jQuery('.hide-if-no-js').show();
+ jQuery('.hide-if-js').hide();
+
+ // postboxes
+ postboxes.add_postbox_toggles(pagenow);
+
$('#pass1').val('').keyup( check_pass_strength );
$('.color-palette').click(function(){$(this).siblings('input[name=admin_color]').attr('checked', 'checked')});
$('#nickname').blur(function(){
Index: wp-admin/user-edit.php
===================================================================
--- wp-admin/user-edit.php (revision 12099)
+++ wp-admin/user-edit.php (working copy)
@@ -96,249 +96,9 @@
if ( !current_user_can('edit_user', $user_id) )
wp_die(__('You do not have permission to edit this user.'));
-include ('admin-header.php');
-?>
+$screen = IS_PROFILE_PAGE ? 'profile' : 'user-edit';
+include('edit-form-user.php');
-
-
-
-
-
-
- get_error_messages() as $message )
- echo "- $message
";
- ?>
-
-
-
-
-
- 'try{convertEntities(pwsL10n);}catch(e){};'
) );
- $scripts->add( 'user-profile', "/wp-admin/js/user-profile$suffix.js", array('jquery'), '20090514' );
+ $scripts->add( 'user-profile', "/wp-admin/js/user-profile$suffix.js", array('jquery', 'postbox'), '20090514' );
$scripts->add_data( 'user-profile', 'group', 1 );
$scripts->add( 'admin-comments', "/wp-admin/js/edit-comments$suffix.js", array('wp-lists', 'jquery-ui-resizable', 'quicktags'), '20091020' );