Make WordPress Core

Changeset 31281


Ignore:
Timestamp:
01/25/2015 06:32:56 PM (10 years ago)
Author:
SergeyBiryukov
Message:

Revert [30027]. These fields are already sufficiently labeled; duplicate labels can lead to confused behavior for screen readers.

see #31117, #30101.

File:
1 edited

Legend:

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

    r31067 r31281  
    247247<?php if ( ! ( IS_PROFILE_PAGE && ! $user_can_edit ) ) : ?>
    248248    <tr class="user-rich-editing-wrap">
    249         <th scope="row"><label for="rich_editing"><?php _e( 'Visual Editor' )?></label></th>
     249        <th scope="row"><?php _e( 'Visual Editor' ); ?></th>
    250250        <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>
    251251    </tr>
     
    273273if ( !( IS_PROFILE_PAGE && !$user_can_edit ) ) : ?>
    274274<tr class="user-comment-shortcuts-wrap">
    275 <th scope="row"><label for="comment_shortcuts"><?php _e( 'Keyboard Shortcuts' ); ?></label></th>
     275<th scope="row"><?php _e( 'Keyboard Shortcuts' ); ?></th>
    276276<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>
    277277</tr>
    278278<?php endif; ?>
    279279<tr class="show-admin-bar user-admin-bar-front-wrap">
    280 <th scope="row"><label for="admin_bar_front"><?php _e( 'Toolbar' )?></label></th>
     280<th scope="row"><?php _e( 'Toolbar' ); ?></th>
    281281<td><fieldset><legend class="screen-reader-text"><span><?php _e('Toolbar') ?></span></legend>
    282282<label for="admin_bar_front">
Note: See TracChangeset for help on using the changeset viewer.