WordPress.org

Make WordPress Core

Ticket #30101: 30101.2.patch

File 30101.2.patch, 1.9 KB (added by Ankit K Gupta, 6 years ago)

Patch file

  • wp-admin/user-edit.php

     
    243243<table class="form-table">
    244244<?php if ( ! ( IS_PROFILE_PAGE && ! $user_can_edit ) ) : ?>
    245245        <tr class="user-rich-editing-wrap">
    246                 <th scope="row"><?php _e('Visual Editor')?></th>
     246                <th scope="row"><label for="rich_editing"><?php _e('Visual Editor')?></label></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>
    248248        </tr>
    249249<?php endif; ?>
     
    266266endif; // $_wp_admin_css_colors
    267267if ( !( IS_PROFILE_PAGE && !$user_can_edit ) ) : ?>
    268268<tr class="user-comment-shortcuts-wrap">
    269 <th scope="row"><?php _e( 'Keyboard Shortcuts' ); ?></th>
     269<th scope="row"><label for="comment_shortcuts"><?php _e( 'Keyboard Shortcuts' ); ?></label></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; ?>
    273273<tr class="show-admin-bar user-admin-bar-front-wrap">
    274 <th scope="row"><?php _e('Toolbar')?></th>
     274<th scope="row"><label for="admin_bar_front"><?php _e('Toolbar')?></label></th>
    275275<td><fieldset><legend class="screen-reader-text"><span><?php _e('Toolbar') ?></span></legend>
    276276<label for="admin_bar_front">
    277277<input name="admin_bar_front" type="checkbox" id="admin_bar_front" value="1"<?php checked( _get_admin_bar_pref( 'front', $profileuser->ID ) ); ?> />