diff --git a/wp-admin/profile.php b/wp-admin/profile.php index ae74d3492..c86320c2e 100644 --- a/wp-admin/profile.php +++ b/wp-admin/profile.php @@ -1,68 +1,9 @@ - - - - - -
- -

To have a one-click bookmarklet, just copy and paste this
into a new text file:

- -
-

Save it as wordpress.reg, and double-click on this file in an Explorer
- window. Answer Yes to the question, and restart Internet Explorer.

- That's it, you can now right-click in an IE window and select
- 'Post to WP' to make the bookmarklet appear. :)

- -

-

- -
-

-
- ERROR: please enter your nickname (can be the same as your username)")); - return false; - } + check_admin_referer(); /* if the ICQ UIN has been entered, check to see if it has only numbers */ if (!empty($_POST["newuser_icq"])) { @@ -81,19 +22,19 @@ case 'update': return false; } - $pass1 = $_POST["pass1"]; - $pass2 = $_POST["pass2"]; + $pass1 = $_POST['pass1']; + $pass2 = $_POST['pass2']; do_action('check_passwords', array($user_login, &$pass1, &$pass2)); if ( '' == $pass1 ) { if ( '' != $pass2 ) - die (__("ERROR: you typed your new password only once. Go back to type it twice.")); - $updatepassword = ""; + die (__('ERROR: you typed your new password only once. Go back to type it twice.')); + $updatepassword = ''; } else { if ('' == $pass2) - die (__("ERROR: you typed your new password only once. Go back to type it twice.")); + die (__('ERROR: you typed your new password only once. Go back to type it twice.')); if ( $pass1 != $pass2 ) - die (__("ERROR: you typed two different passwords. Go back to correct that.")); + die (__('ERROR: you typed two different passwords. Go back to correct that.')); $newuser_pass = $pass1; $updatepassword = "user_pass=MD5('$newuser_pass'), "; wp_clearcookie(); @@ -128,53 +69,114 @@ case 'update': do_action('profile_update', $user_ID); wp_redirect('profile.php?updated=true'); -break; + exit; +} +$title = 'Profile'; -default: - $parent_file = 'profile.php'; - include_once('admin-header.php'); - $profileuser = new WP_User($user_ID); - $profiledata = &$profileuser->data; +$parent_file = 'profile.php'; +include_once('admin-header.php'); +$profileuser = new WP_User($user_ID); +$profiledata = &$profileuser->data; - $bookmarklet_height= 440; +$bookmarklet_height= 440; +?> -if (isset($updated)) { ?> +

-
-

-
-

- - -

+
+

+ +

+ + +

+ +
+ +

+

+ +

+ +

+ +

+
+ +
+ + +

+ +

+ +

+ +

+ +

+

+
+
+
+ +

+

+
+ + +
+ +

+

+

+
+ + + + +
- - - - - - - - - - - - caps) > count($profileuser->roles)): ?> @@ -194,115 +196,12 @@ if (isset($updated)) { ?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
user_login; ?>
roles as $role => $value) { - if($output != '') $output .= ', '; - $output .= $wp_roles->role_names[$role]; - } - echo $output; - ?>
-
Password (Leave blank to stay the same.)') ?> -
-
-

- -

+

+ +

+
- - -
- -
- WordPress Sidebar!') ?> - -
-
-. - -
- -
- */ -include('admin-footer.php'); - ?> + \ No newline at end of file diff --git a/wp-admin/wp-admin.css b/wp-admin/wp-admin.css index 6b5737f37..3dcda7e13 100644 --- a/wp-admin/wp-admin.css +++ b/wp-admin/wp-admin.css @@ -485,28 +485,6 @@ table .vers, table .name { margin-right: 16em; } -#profile { - margin: 10px; -} - -#profile .left { - border-right: 1px dashed #ccc; - float: left; - margin-right: 5px; - padding-right: 5px; -} - -#profile label { - float: left; - padding-right: 3px; - text-align: right; - width: 85px; -} - -#profile p { - margin: 0 0 4px 0; -} - #save { width: 15em; } @@ -695,6 +673,25 @@ table .vers, table .name { border: 1px solid #ccc; } +#your-profile fieldset { + border: 1px solid #ccc; + float: left; + width: 40%; + padding: .5em 2em; + margin: 1em; +} + +#your-profile fieldset input { + width: 100%; + font-size: 20px; + padding: 2px; +} + +#your-profile legend { + font-family: Georgia, "Times New Roman", Times, serif; + font-size: 22px; +} + /* default box styles */ .dbx-box { background: #fff;