WordPress.org

Make WordPress Core

Ticket #12295: user-edit.php.diff

File user-edit.php.diff, 6.3 KB (added by pampfelimetten, 8 years ago)
  • user-edit.php

     
    175175<input type="hidden" name="checkuser_id" value="<?php echo $user_ID ?>" />
    176176</p>
    177177
    178 <h3><?php _e('Personal Options'); ?></h3>
     178<div id="form-table-personal-options">
    179179
     180<h3 id="form-table-personal-options-title"><?php _e('Personal Options'); ?></h3>
     181
    180182<table class="form-table">
     183
    181184<?php if ( rich_edit_exists() && !( IS_PROFILE_PAGE && !$user_can_edit ) ) : // don't bother showing the option if the editor has been removed ?>
    182         <tr>
     185        <tr id="form-table-personal-options-visual-editor">
    183186                <th scope="row"><?php _e('Visual Editor')?></th>
    184187                <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>
    185188        </tr>
    186189<?php endif; ?>
    187190<?php if ( count($_wp_admin_css_colors) > 1 ) : ?>
    188 <tr>
     191<tr id="form-table-personal-options-admin-color-scheme">
    189192<th scope="row"><?php _e('Admin Color Scheme')?></th>
    190193<td><fieldset><legend class="screen-reader-text"><span><?php _e('Admin Color Scheme')?></span></legend>
    191194<?php
     
    210213<?php
    211214endif;
    212215if ( !( IS_PROFILE_PAGE && !$user_can_edit ) ) : ?>
    213 <tr>
     216<tr id="form-table-personal-options-keyboard-shortcuts">
    214217<th scope="row"><?php _e( 'Keyboard Shortcuts' ); ?></th>
    215218<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>
    216219</tr>
     
    224227                do_action('profile_personal_options', $profileuser);
    225228?>
    226229
    227 <h3><?php _e('Name') ?></h3>
     230</div>
    228231
    229 <table class="form-table">
    230         <tr>
     232<div id="form-table-name">
     233
     234<h3 id="form-table-name-title"><?php _e('Name') ?></h3>
     235
     236<table class="form-table" >
     237       
     238        <tr id="form-table-name-user-login">
    231239                <th><label for="user_login"><?php _e('Username'); ?></label></th>
    232240                <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('Your username cannot be changed.'); ?></span></td>
    233241        </tr>
    234242
    235243<?php if ( !IS_PROFILE_PAGE ): ?>
    236 <tr><th><label for="role"><?php _e('Role:') ?></label></th>
     244<tr id="form-table-name-role"><th><label for="role"><?php _e('Role:') ?></label></th>
    237245<td><select name="role" id="role">
    238246<?php
    239247// Get the highest/primary role for this user
     
    253261</select></td></tr>
    254262<?php endif; //!IS_PROFILE_PAGE ?>
    255263
    256 <tr>
     264<tr id="form-table-name-first-name">
    257265        <th><label for="first_name"><?php _e('First Name') ?></label></th>
    258266        <td><input type="text" name="first_name" id="first_name" value="<?php echo esc_attr($profileuser->first_name) ?>" class="regular-text" /></td>
    259267</tr>
    260268
    261 <tr>
     269<tr id="form-table-name-last-name">
    262270        <th><label for="last_name"><?php _e('Last Name') ?></label></th>
    263271        <td><input type="text" name="last_name" id="last_name" value="<?php echo esc_attr($profileuser->last_name) ?>" class="regular-text" /></td>
    264272</tr>
    265273
    266 <tr>
     274<tr id="form-table-name-nickname">
    267275        <th><label for="nickname"><?php _e('Nickname'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th>
    268276        <td><input type="text" name="nickname" id="nickname" value="<?php echo esc_attr($profileuser->nickname) ?>" class="regular-text" /></td>
    269277</tr>
    270278
    271 <tr>
     279<tr id="form-table-name-display-name">
    272280        <th><label for="display_name"><?php _e('Display name publicly as') ?></label></th>
    273281        <td>
    274282                <select name="display_name" id="display_name">
     
    298306</tr>
    299307</table>
    300308
    301 <h3><?php _e('Contact Info') ?></h3>
     309</div>
    302310
     311<div id="form-table-contact-info">
     312
     313<h3 id="form-table-contact-info-title"><?php _e('Contact Info') ?></h3>
     314
    303315<table class="form-table">
    304 <tr>
     316<tr id="form-table-contact-info-email">
    305317        <th><label for="email"><?php _e('E-mail'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th>
    306318        <td><input type="text" name="email" id="email" value="<?php echo esc_attr($profileuser->user_email) ?>" class="regular-text" /></td>
    307319</tr>
    308320
    309 <tr>
     321<tr id="form-table-contact-info-url">
    310322        <th><label for="url"><?php _e('Website') ?></label></th>
    311323        <td><input type="text" name="url" id="url" value="<?php echo esc_attr($profileuser->user_url) ?>" class="regular-text code" /></td>
    312324</tr>
     
    314326<?php
    315327        foreach (_wp_get_user_contactmethods() as $name => $desc) {
    316328?>
    317 <tr>
     329<tr id="form-table-contact-info-<?php echo $name; ?>">
    318330        <th><label for="<?php echo $name; ?>"><?php echo apply_filters('user_'.$name.'_label', $desc); ?></label></th>
    319331        <td><input type="text" name="<?php echo $name; ?>" id="<?php echo $name; ?>" value="<?php echo esc_attr($profileuser->$name) ?>" class="regular-text" /></td>
    320332</tr>
     
    323335?>
    324336</table>
    325337
    326 <h3><?php IS_PROFILE_PAGE ? _e('About Yourself') : _e('About the user'); ?></h3>
     338</div>
    327339
     340<div id="form-table-about-yourself">
     341
     342<h3 id="form-table-about-yourself-title"><?php IS_PROFILE_PAGE ? _e('About Yourself') : _e('About the user'); ?></h3>
     343
    328344<table class="form-table">
    329 <tr>
     345<tr id="form-table-about-yourself-description">
    330346        <th><label for="description"><?php _e('Biographical Info'); ?></label></th>
    331347        <td><textarea name="description" id="description" rows="5" cols="30"><?php echo esc_html($profileuser->description); ?></textarea><br />
    332348        <span class="description"><?php _e('Share a little biographical information to fill out your profile. This may be shown publicly.'); ?></span></td>
     
    347363<?php endif; ?>
    348364</table>
    349365
     366</div>
     367
    350368<?php
    351369        if ( IS_PROFILE_PAGE ) {
    352370                do_action('show_user_profile', $profileuser);
     
    356374?>
    357375
    358376<?php if ( count($profileuser->caps) > count($profileuser->roles) && apply_filters('additional_capabilities_display', true, $profileuser) ) { ?>
     377<div id="form-table-caps">
     378
    359379<br class="clear" />
    360380        <table width="99%" style="border: none;" cellspacing="2" cellpadding="3" class="editform">
    361381                <tr>
     
    373393                        ?></td>
    374394                </tr>
    375395        </table>
     396</div>
    376397<?php } ?>
    377398
    378399<p class="submit">