WordPress.org

Make WordPress Core

Changeset 29804


Ignore:
Timestamp:
10/02/2014 12:55:40 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Add classes to form containers on Edit User screen.

props jarednova.
fixes #29348.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/user-edit.php

    r29030 r29804  
    6868function use_ssl_preference($user) {
    6969?>
    70     <tr>
     70    <tr class="user-use-ssl-wrap">
    7171        <th scope="row"><?php _e('Use https')?></th>
    7272        <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>
     
    243243<table class="form-table">
    244244<?php if ( ! ( IS_PROFILE_PAGE && ! $user_can_edit ) ) : ?>
    245     <tr>
     245    <tr class="user-rich-editing-wrap">
    246246        <th scope="row"><?php _e('Visual Editor')?></th>
    247247        <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>
     
    249249<?php endif; ?>
    250250<?php if ( count($_wp_admin_css_colors) > 1 && has_action('admin_color_scheme_picker') ) : ?>
    251 <tr>
     251<tr class="user-admin-color-wrap">
    252252<th scope="row"><?php _e('Admin Color Scheme')?></th>
    253253<?php
     
    266266endif; // $_wp_admin_css_colors
    267267if ( !( IS_PROFILE_PAGE && !$user_can_edit ) ) : ?>
    268 <tr>
     268<tr class="user-comment-shortcuts-wrap">
    269269<th scope="row"><?php _e( 'Keyboard Shortcuts' ); ?></th>
    270270<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>
    271271</tr>
    272272<?php endif; ?>
    273 <tr class="show-admin-bar">
     273<tr class="show-admin-bar user-admin-bar-front-wrap">
    274274<th scope="row"><?php _e('Toolbar')?></th>
    275275<td><fieldset><legend class="screen-reader-text"><span><?php _e('Toolbar') ?></span></legend>
     
    309309
    310310<table class="form-table">
    311     <tr>
     311    <tr class="user-user-login-wrap">
    312312        <th><label for="user_login"><?php _e('Username'); ?></label></th>
    313313        <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>
     
    315315
    316316<?php if ( !IS_PROFILE_PAGE && !is_network_admin() ) : ?>
    317 <tr><th><label for="role"><?php _e('Role') ?></label></th>
     317<tr class="user-role-wrap"><th><label for="role"><?php _e('Role') ?></label></th>
    318318<td><select name="role" id="role">
    319319<?php
     
    335335
    336336if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_can( 'manage_network_options' ) && !isset($super_admins) ) { ?>
    337 <tr><th><?php _e('Super Admin'); ?></th>
     337<tr class="user-super-admin-wrap"><th><?php _e('Super Admin'); ?></th>
    338338<td>
    339339<?php if ( $profileuser->user_email != get_site_option( 'admin_email' ) || ! is_super_admin( $profileuser->ID ) ) : ?>
     
    345345<?php } ?>
    346346
    347 <tr>
     347<tr class="user-first-name-wrap">
    348348    <th><label for="first_name"><?php _e('First Name') ?></label></th>
    349349    <td><input type="text" name="first_name" id="first_name" value="<?php echo esc_attr($profileuser->first_name) ?>" class="regular-text" /></td>
    350350</tr>
    351351
    352 <tr>
     352<tr class="user-last-name-wrap">
    353353    <th><label for="last_name"><?php _e('Last Name') ?></label></th>
    354354    <td><input type="text" name="last_name" id="last_name" value="<?php echo esc_attr($profileuser->last_name) ?>" class="regular-text" /></td>
    355355</tr>
    356356
    357 <tr>
     357<tr class="user-nickname-wrap">
    358358    <th><label for="nickname"><?php _e('Nickname'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th>
    359359    <td><input type="text" name="nickname" id="nickname" value="<?php echo esc_attr($profileuser->nickname) ?>" class="regular-text" /></td>
    360360</tr>
    361361
    362 <tr>
     362<tr class="user-display-name-wrap">
    363363    <th><label for="display_name"><?php _e('Display name publicly as') ?></label></th>
    364364    <td>
     
    400400
    401401<table class="form-table">
    402 <tr>
     402<tr class="user-email-wrap">
    403403    <th><label for="email"><?php _e('E-mail'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th>
    404404    <td><input type="email" name="email" id="email" value="<?php echo esc_attr( $profileuser->user_email ) ?>" class="regular-text ltr" />
     
    413413</tr>
    414414
    415 <tr>
     415<tr class="user-url-wrap">
    416416    <th><label for="url"><?php _e('Website') ?></label></th>
    417417    <td><input type="url" name="url" id="url" value="<?php echo esc_attr( $profileuser->user_url ) ?>" class="regular-text code" /></td>
     
    421421    foreach ( wp_get_user_contact_methods( $profileuser ) as $name => $desc ) {
    422422?>
    423 <tr>
     423<tr class="user-<?php echo $name; ?>-wrap">
    424424    <?php
    425425    /**
     
    445445
    446446<table class="form-table">
    447 <tr>
     447<tr class="user-description-wrap">
    448448    <th><label for="description"><?php _e('Biographical Info'); ?></label></th>
    449449    <td><textarea name="description" id="description" rows="5" cols="30"><?php echo $profileuser->description; // textarea_escaped ?></textarea><br />
     
    456456if ( $show_password_fields ) :
    457457?>
    458 <tr id="password">
     458<tr id="password" class="user-pass1-wrap">
    459459    <th><label for="pass1"><?php _e( 'New Password' ); ?></label></th>
    460460    <td>
     
    464464    </td>
    465465</tr>
    466 <tr>
     466<tr class="user-pass2-wrap">
    467467    <th scope="row"><label for="pass2"><?php _e( 'Repeat New Password' ); ?></label></th>
    468468    <td>
     
    519519<h3><?php _e( 'Additional Capabilities' ); ?></h3>
    520520<table class="form-table">
    521 <tr>
     521<tr class="user-capabilities-wrap">
    522522    <th scope="row"><?php _e( 'Capabilities' ); ?></th>
    523523    <td>
Note: See TracChangeset for help on using the changeset viewer.