| 1 | [34mSun Aug 24 12:58:35 2014 -0400[m [33m0077a7c[32m (HEAD, edit-user-classes)[m [34madded classes to the user edit screen [35m [Jared Novack][m |
|---|
| 2 | diff --git a/wp-admin/user-edit.php b/wp-admin/user-edit.php |
|---|
| 3 | index fd3db18..05edd4e 100644 |
|---|
| 4 | --- a/wp-admin/user-edit.php |
|---|
| 5 | +++ b/wp-admin/user-edit.php |
|---|
| 6 | @@ -67,7 +67,7 @@ $user_can_edit = current_user_can( 'edit_posts' ) || current_user_can( 'edit_pag |
|---|
| 7 | */ |
|---|
| 8 | function use_ssl_preference($user) { |
|---|
| 9 | ?> |
|---|
| 10 | - <tr> |
|---|
| 11 | + <tr class="user-use_ssl-wrap"> |
|---|
| 12 | <th scope="row"><?php _e('Use https')?></th> |
|---|
| 13 | <td><label for="use_ssl"><input name="use_ssl" type="checkbox" id="use_ssl" value="1" <?php checked('1', $user->use_ssl); ?> /> <?php _e('Always use https when visiting the admin'); ?></label></td> |
|---|
| 14 | </tr> |
|---|
| 15 | @@ -242,13 +242,13 @@ if ( ! IS_PROFILE_PAGE ) { |
|---|
| 16 | |
|---|
| 17 | <table class="form-table"> |
|---|
| 18 | <?php if ( ! ( IS_PROFILE_PAGE && ! $user_can_edit ) ) : ?> |
|---|
| 19 | - <tr> |
|---|
| 20 | + <tr class="user-rich_editing-wrap"> |
|---|
| 21 | <th scope="row"><?php _e('Visual Editor')?></th> |
|---|
| 22 | <td><label for="rich_editing"><input name="rich_editing" type="checkbox" id="rich_editing" value="false" <?php if ( ! empty( $profileuser->rich_editing ) ) checked( 'false', $profileuser->rich_editing ); ?> /> <?php _e( 'Disable the visual editor when writing' ); ?></label></td> |
|---|
| 23 | </tr> |
|---|
| 24 | <?php endif; ?> |
|---|
| 25 | <?php if ( count($_wp_admin_css_colors) > 1 && has_action('admin_color_scheme_picker') ) : ?> |
|---|
| 26 | -<tr> |
|---|
| 27 | +<tr class="user-admin_color-wrap"> |
|---|
| 28 | <th scope="row"><?php _e('Admin Color Scheme')?></th> |
|---|
| 29 | <?php |
|---|
| 30 | /** |
|---|
| 31 | @@ -265,12 +265,12 @@ if ( ! IS_PROFILE_PAGE ) { |
|---|
| 32 | <?php |
|---|
| 33 | endif; // $_wp_admin_css_colors |
|---|
| 34 | if ( !( IS_PROFILE_PAGE && !$user_can_edit ) ) : ?> |
|---|
| 35 | -<tr> |
|---|
| 36 | +<tr class="user-comment_shortcuts-wrap"> |
|---|
| 37 | <th scope="row"><?php _e( 'Keyboard Shortcuts' ); ?></th> |
|---|
| 38 | <td><label for="comment_shortcuts"><input type="checkbox" name="comment_shortcuts" id="comment_shortcuts" value="true" <?php if ( ! empty( $profileuser->comment_shortcuts ) ) checked( 'true', $profileuser->comment_shortcuts ); ?> /> <?php _e('Enable keyboard shortcuts for comment moderation.'); ?></label> <?php _e('<a href="http://codex.wordpress.org/Keyboard_Shortcuts" target="_blank">More information</a>'); ?></td> |
|---|
| 39 | </tr> |
|---|
| 40 | <?php endif; ?> |
|---|
| 41 | -<tr class="show-admin-bar"> |
|---|
| 42 | +<tr class="user-admin_bar_front-wrap show-admin-bar"> |
|---|
| 43 | <th scope="row"><?php _e('Toolbar')?></th> |
|---|
| 44 | <td><fieldset><legend class="screen-reader-text"><span><?php _e('Toolbar') ?></span></legend> |
|---|
| 45 | <label for="admin_bar_front"> |
|---|
| 46 | @@ -308,13 +308,13 @@ do_action( 'personal_options', $profileuser ); |
|---|
| 47 | <h3><?php _e('Name') ?></h3> |
|---|
| 48 | |
|---|
| 49 | <table class="form-table"> |
|---|
| 50 | - <tr> |
|---|
| 51 | + <tr class="user-user_login-wrap"> |
|---|
| 52 | <th><label for="user_login"><?php _e('Username'); ?></label></th> |
|---|
| 53 | <td><input type="text" name="user_login" id="user_login" value="<?php echo esc_attr($profileuser->user_login); ?>" disabled="disabled" class="regular-text" /> <span class="description"><?php _e('Usernames cannot be changed.'); ?></span></td> |
|---|
| 54 | </tr> |
|---|
| 55 | |
|---|
| 56 | <?php if ( !IS_PROFILE_PAGE && !is_network_admin() ) : ?> |
|---|
| 57 | -<tr><th><label for="role"><?php _e('Role') ?></label></th> |
|---|
| 58 | +<tr class="user-role-wrap"><th><label for="role"><?php _e('Role') ?></label></th> |
|---|
| 59 | <td><select name="role" id="role"> |
|---|
| 60 | <?php |
|---|
| 61 | // Compare user role against currently editable roles |
|---|
| 62 | @@ -334,7 +334,7 @@ else |
|---|
| 63 | <?php endif; //!IS_PROFILE_PAGE |
|---|
| 64 | |
|---|
| 65 | if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_can( 'manage_network_options' ) && !isset($super_admins) ) { ?> |
|---|
| 66 | -<tr><th><?php _e('Super Admin'); ?></th> |
|---|
| 67 | +<tr class="user-super_admin-wrap"><th><?php _e('Super Admin'); ?></th> |
|---|
| 68 | <td> |
|---|
| 69 | <?php if ( $profileuser->user_email != get_site_option( 'admin_email' ) || ! is_super_admin( $profileuser->ID ) ) : ?> |
|---|
| 70 | <p><label><input type="checkbox" id="super_admin" name="super_admin"<?php checked( is_super_admin( $profileuser->ID ) ); ?> /> <?php _e( 'Grant this user super admin privileges for the Network.' ); ?></label></p> |
|---|
| 71 | @@ -344,22 +344,22 @@ if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_c |
|---|
| 72 | </td></tr> |
|---|
| 73 | <?php } ?> |
|---|
| 74 | |
|---|
| 75 | -<tr> |
|---|
| 76 | +<tr class="user-first_name-wrap"> |
|---|
| 77 | <th><label for="first_name"><?php _e('First Name') ?></label></th> |
|---|
| 78 | <td><input type="text" name="first_name" id="first_name" value="<?php echo esc_attr($profileuser->first_name) ?>" class="regular-text" /></td> |
|---|
| 79 | </tr> |
|---|
| 80 | |
|---|
| 81 | -<tr> |
|---|
| 82 | +<tr class="user-last_name-wrap"> |
|---|
| 83 | <th><label for="last_name"><?php _e('Last Name') ?></label></th> |
|---|
| 84 | <td><input type="text" name="last_name" id="last_name" value="<?php echo esc_attr($profileuser->last_name) ?>" class="regular-text" /></td> |
|---|
| 85 | </tr> |
|---|
| 86 | |
|---|
| 87 | -<tr> |
|---|
| 88 | +<tr class="user-nickname-wrap"> |
|---|
| 89 | <th><label for="nickname"><?php _e('Nickname'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th> |
|---|
| 90 | <td><input type="text" name="nickname" id="nickname" value="<?php echo esc_attr($profileuser->nickname) ?>" class="regular-text" /></td> |
|---|
| 91 | </tr> |
|---|
| 92 | |
|---|
| 93 | -<tr> |
|---|
| 94 | +<tr class="user-display_name-wrap"> |
|---|
| 95 | <th><label for="display_name"><?php _e('Display name publicly as') ?></label></th> |
|---|
| 96 | <td> |
|---|
| 97 | <select name="display_name" id="display_name"> |
|---|
| 98 | @@ -399,7 +399,7 @@ if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_c |
|---|
| 99 | <h3><?php _e('Contact Info') ?></h3> |
|---|
| 100 | |
|---|
| 101 | <table class="form-table"> |
|---|
| 102 | -<tr> |
|---|
| 103 | +<tr class="user-email-wrap"> |
|---|
| 104 | <th><label for="email"><?php _e('E-mail'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th> |
|---|
| 105 | <td><input type="email" name="email" id="email" value="<?php echo esc_attr( $profileuser->user_email ) ?>" class="regular-text ltr" /> |
|---|
| 106 | <?php |
|---|
| 107 | @@ -412,7 +412,7 @@ if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_c |
|---|
| 108 | </td> |
|---|
| 109 | </tr> |
|---|
| 110 | |
|---|
| 111 | -<tr> |
|---|
| 112 | +<tr class="user-url-wrap"> |
|---|
| 113 | <th><label for="url"><?php _e('Website') ?></label></th> |
|---|
| 114 | <td><input type="url" name="url" id="url" value="<?php echo esc_attr( $profileuser->user_url ) ?>" class="regular-text code" /></td> |
|---|
| 115 | </tr> |
|---|
| 116 | @@ -420,7 +420,7 @@ if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_c |
|---|
| 117 | <?php |
|---|
| 118 | foreach ( wp_get_user_contact_methods( $profileuser ) as $name => $desc ) { |
|---|
| 119 | ?> |
|---|
| 120 | -<tr> |
|---|
| 121 | +<tr class="user-<?php echo $name; ?>-wrap"> |
|---|
| 122 | <?php |
|---|
| 123 | /** |
|---|
| 124 | * Filter a user contactmethod label. |
|---|
| 125 | @@ -444,7 +444,7 @@ if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_c |
|---|
| 126 | <h3><?php IS_PROFILE_PAGE ? _e('About Yourself') : _e('About the user'); ?></h3> |
|---|
| 127 | |
|---|
| 128 | <table class="form-table"> |
|---|
| 129 | -<tr> |
|---|
| 130 | +<tr class="user-description-wrap"> |
|---|
| 131 | <th><label for="description"><?php _e('Biographical Info'); ?></label></th> |
|---|
| 132 | <td><textarea name="description" id="description" rows="5" cols="30"><?php echo $profileuser->description; // textarea_escaped ?></textarea><br /> |
|---|
| 133 | <span class="description"><?php _e('Share a little biographical information to fill out your profile. This may be shown publicly.'); ?></span></td> |
|---|
| 134 | @@ -455,7 +455,7 @@ if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_c |
|---|
| 135 | $show_password_fields = apply_filters( 'show_password_fields', true, $profileuser ); |
|---|
| 136 | if ( $show_password_fields ) : |
|---|
| 137 | ?> |
|---|
| 138 | -<tr id="password"> |
|---|
| 139 | +<tr class="user-password-wrap" id="password"> |
|---|
| 140 | <th><label for="pass1"><?php _e( 'New Password' ); ?></label></th> |
|---|
| 141 | <td> |
|---|
| 142 | <input class="hidden" value=" " /><!-- #24364 workaround --> |
|---|
| 143 | @@ -463,7 +463,7 @@ if ( $show_password_fields ) : |
|---|
| 144 | <span class="description"><?php _e( 'If you would like to change the password type a new one. Otherwise leave this blank.' ); ?></span> |
|---|
| 145 | </td> |
|---|
| 146 | </tr> |
|---|
| 147 | -<tr> |
|---|
| 148 | +<tr class="user-pass2-wrap"> |
|---|
| 149 | <th scope="row"><label for="pass2"><?php _e( 'Repeat New Password' ); ?></label></th> |
|---|
| 150 | <td> |
|---|
| 151 | <input name="pass2" type="password" id="pass2" class="regular-text" size="16" value="" autocomplete="off" /><br /> |
|---|
| 152 | @@ -518,7 +518,7 @@ if ( count( $profileuser->caps ) > count( $profileuser->roles ) |
|---|
| 153 | ) : ?> |
|---|
| 154 | <h3><?php _e( 'Additional Capabilities' ); ?></h3> |
|---|
| 155 | <table class="form-table"> |
|---|
| 156 | -<tr> |
|---|
| 157 | +<tr class="user-capabilities-wrap"> |
|---|
| 158 | <th scope="row"><?php _e( 'Capabilities' ); ?></th> |
|---|
| 159 | <td> |
|---|
| 160 | <?php |
|---|