Make WordPress Core

Changeset 30027


Ignore:
Timestamp:
10/26/2014 09:28:50 PM (10 years ago)
Author:
johnbillion
Message:

Add labels to the Personal Options input fields on the user profile editing screen. Fixes #30101. Props Ankit K Gupta

File:
1 edited

Legend:

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

    r29962 r30027  
    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>
     
    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">
Note: See TracChangeset for help on using the changeset viewer.