WordPress.org

Make WordPress Core

Ticket #7730: 7730.diff

File 7730.diff, 5.7 KB (added by wojtek.szkutnik, 8 years ago)
  • user-edit.php

     
    189189
    190190<h3><?php _e('Personal Options'); ?></h3>
    191191
    192 <table class="form-table">
     192<table class="form-table personal-options">
    193193<?php if ( rich_edit_exists() && !( IS_PROFILE_PAGE && !$user_can_edit ) ) : // don't bother showing the option if the editor has been removed ?>
    194         <tr>
     194        <tr class="visual-editor">
    195195                <th scope="row"><?php _e('Visual Editor')?></th>
    196196                <td><label for="rich_editing"><input name="rich_editing" type="checkbox" id="rich_editing" value="false" <?php checked('false', $profileuser->rich_editing); ?> /> <?php _e('Disable the visual editor when writing'); ?></label></td>
    197197        </tr>
    198198<?php endif; ?>
    199199<?php if ( count($_wp_admin_css_colors) > 1 && has_action('admin_color_scheme_picker') ) : ?>
    200 <tr>
     200<tr class="admin-colour-scheme">
    201201<th scope="row"><?php _e('Admin Color Scheme')?></th>
    202202<td><?php do_action( 'admin_color_scheme_picker' ); ?></td>
    203203</tr>
    204204<?php
    205205endif; // $_wp_admin_css_colors
    206206if ( !( IS_PROFILE_PAGE && !$user_can_edit ) ) : ?>
    207 <tr>
     207<tr class="keyboard-shortcuts">
    208208<th scope="row"><?php _e( 'Keyboard Shortcuts' ); ?></th>
    209209<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">More information</a>'); ?></td>
    210210</tr>
     
    220220
    221221<h3><?php _e('Name') ?></h3>
    222222
    223 <table class="form-table">
    224         <tr>
     223<table class="form-table name">
     224        <tr class="username">
    225225                <th><label for="user_login"><?php _e('Username'); ?></label></th>
    226226                <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>
    227227        </tr>
    228228
    229229<?php if ( !IS_PROFILE_PAGE ): ?>
    230 <tr><th><label for="role"><?php _e('Role:') ?></label></th>
     230<tr class="role"><th><label for="role"><?php _e('Role:') ?></label></th>
    231231<td><select name="role" id="role">
    232232<?php
    233233// Get the highest/primary role for this user
     
    251251</td></tr>
    252252<?php endif; //!IS_PROFILE_PAGE ?>
    253253
    254 <tr>
     254<tr class="first-name">
    255255        <th><label for="first_name"><?php _e('First Name') ?></label></th>
    256256        <td><input type="text" name="first_name" id="first_name" value="<?php echo esc_attr($profileuser->first_name) ?>" class="regular-text" /></td>
    257257</tr>
    258258
    259 <tr>
     259<tr class="last-name">
    260260        <th><label for="last_name"><?php _e('Last Name') ?></label></th>
    261261        <td><input type="text" name="last_name" id="last_name" value="<?php echo esc_attr($profileuser->last_name) ?>" class="regular-text" /></td>
    262262</tr>
    263263
    264 <tr>
     264<tr class="nickname">
    265265        <th><label for="nickname"><?php _e('Nickname'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th>
    266266        <td><input type="text" name="nickname" id="nickname" value="<?php echo esc_attr($profileuser->nickname) ?>" class="regular-text" /></td>
    267267</tr>
    268268
    269 <tr>
     269<tr class="display-name">
    270270        <th><label for="display_name"><?php _e('Display name publicly as') ?></label></th>
    271271        <td>
    272272                <select name="display_name" id="display_name">
     
    299299
    300300<h3><?php _e('Contact Info') ?></h3>
    301301
    302 <table class="form-table">
    303 <tr>
     302<table class="form-table contact-info">
     303<tr class="email">
    304304        <th><label for="email"><?php _e('E-mail'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th>
    305305        <td><input type="text" name="email" id="email" value="<?php echo esc_attr($profileuser->user_email) ?>" class="regular-text" />
    306306        <?php
     
    313313        </td>
    314314</tr>
    315315
    316 <tr>
     316<tr class="website">
    317317        <th><label for="url"><?php _e('Website') ?></label></th>
    318318        <td><input type="text" name="url" id="url" value="<?php echo esc_attr($profileuser->user_url) ?>" class="regular-text code" /></td>
    319319</tr>
     
    321321<?php
    322322        foreach (_wp_get_user_contactmethods() as $name => $desc) {
    323323?>
    324 <tr>
     324<tr class="contact_<?php echo $name; ?>">
    325325        <th><label for="<?php echo $name; ?>"><?php echo apply_filters('user_'.$name.'_label', $desc); ?></label></th>
    326326        <td><input type="text" name="<?php echo $name; ?>" id="<?php echo $name; ?>" value="<?php echo esc_attr($profileuser->$name) ?>" class="regular-text" /></td>
    327327</tr>
     
    332332
    333333<h3><?php IS_PROFILE_PAGE ? _e('About Yourself') : _e('About the user'); ?></h3>
    334334
    335 <table class="form-table">
    336 <tr>
     335<table class="form-table about-yourself">
     336<tr class="biographical-info">
    337337        <th><label for="description"><?php _e('Biographical Info'); ?></label></th>
    338338        <td><textarea name="description" id="description" rows="5" cols="30"><?php echo esc_html($profileuser->description); ?></textarea><br />
    339339        <span class="description"><?php _e('Share a little biographical information to fill out your profile. This may be shown publicly.'); ?></span></td>
     
    343343$show_password_fields = apply_filters('show_password_fields', true, $profileuser);
    344344if ( $show_password_fields ) :
    345345?>
    346 <tr id="password">
     346<tr id="password" class="password">
    347347        <th><label for="pass1"><?php _e('New Password'); ?></label></th>
    348348        <td><input type="password" name="pass1" id="pass1" size="16" value="" autocomplete="off" /> <span class="description"><?php _e("If you would like to change the password type a new one. Otherwise leave this blank."); ?></span><br />
    349349                <input type="password" name="pass2" id="pass2" size="16" value="" autocomplete="off" /> <span class="description"><?php _e("Type your new password again."); ?></span><br />