Make WordPress Core


Ignore:
Timestamp:
05/12/2009 10:40:56 PM (16 years ago)
Author:
markjaquith
Message:

Use a semantic class name for text targeted to screen readers. props filosofo. fixes #9791

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-discussion.php

    r11283 r11312  
    2626<tr valign="top">
    2727<th scope="row"><?php _e('Default article settings') ?></th>
    28 <td><fieldset><legend class="invisible"><span><?php _e('Default article settings') ?></span></legend>
     28<td><fieldset><legend class="screen-reader-text"><span><?php _e('Default article settings') ?></span></legend>
    2929<label for="default_pingback_flag">
    3030<input name="default_pingback_flag" type="checkbox" id="default_pingback_flag" value="1" <?php checked('1', get_option('default_pingback_flag')); ?> />
     
    4444<tr valign="top">
    4545<th scope="row"><?php _e('Other comment settings') ?></th>
    46 <td><fieldset><legend class="invisible"><span><?php _e('Other comment settings') ?></span></legend>
     46<td><fieldset><legend class="screen-reader-text"><span><?php _e('Other comment settings') ?></span></legend>
    4747<label for="require_name_email"><input type="checkbox" name="require_name_email" id="require_name_email" value="1" <?php checked('1', get_option('require_name_email')); ?> /> <?php _e('Comment author must fill out name and e-mail') ?></label>
    4848<br />
     
    103103<tr valign="top">
    104104<th scope="row"><?php _e('E-mail me whenever') ?></th>
    105 <td><fieldset><legend class="invisible"><span><?php _e('E-mail me whenever') ?></span></legend>
     105<td><fieldset><legend class="screen-reader-text"><span><?php _e('E-mail me whenever') ?></span></legend>
    106106<label for="comments_notify">
    107107<input name="comments_notify" type="checkbox" id="comments_notify" value="1" <?php checked('1', get_option('comments_notify')); ?> />
     
    115115<tr valign="top">
    116116<th scope="row"><?php _e('Before a comment appears') ?></th>
    117 <td><fieldset><legend class="invisible"><span><?php _e('Before a comment appears') ?></span></legend>
     117<td><fieldset><legend class="screen-reader-text"><span><?php _e('Before a comment appears') ?></span></legend>
    118118<label for="comment_moderation">
    119119<input name="comment_moderation" type="checkbox" id="comment_moderation" value="1" <?php checked('1', get_option('comment_moderation')); ?> />
     
    125125<tr valign="top">
    126126<th scope="row"><?php _e('Comment Moderation') ?></th>
    127 <td><fieldset><legend class="invisible"><span><?php _e('Comment Moderation') ?></span></legend>
     127<td><fieldset><legend class="screen-reader-text"><span><?php _e('Comment Moderation') ?></span></legend>
    128128<p><label for="comment_max_links"><?php printf(__('Hold a comment in the queue if it contains %s or more links. (A common characteristic of comment spam is a large number of hyperlinks.)'), '<input name="comment_max_links" type="text" id="comment_max_links" value="' . esc_attr(get_option('comment_max_links')) . '" class="small-text" />' ) ?></label></p>
    129129
     
    136136<tr valign="top">
    137137<th scope="row"><?php _e('Comment Blacklist') ?></th>
    138 <td><fieldset><legend class="invisible"><span><?php _e('Comment Blacklist') ?></span></legend>
     138<td><fieldset><legend class="screen-reader-text"><span><?php _e('Comment Blacklist') ?></span></legend>
    139139<p><label for="blacklist_keys"><?php _e('When a comment contains any of these words in its content, name, URL, e-mail, or IP, it will be marked as spam. One word or IP per line. It will match inside words, so &#8220;press&#8221; will match &#8220;WordPress&#8221;.') ?></label></p>
    140140<p>
     
    155155<tr valign="top">
    156156<th scope="row"><?php _e('Avatar Display') ?></th>
    157 <td><fieldset><legend class="invisible"><span><?php _e('Avatar display') ?></span></legend>
     157<td><fieldset><legend class="screen-reader-text"><span><?php _e('Avatar display') ?></span></legend>
    158158<?php
    159159    $yesorno = array(0 => __("Don&#8217;t show Avatars"), 1 => __('Show Avatars'));
     
    167167<tr valign="top">
    168168<th scope="row"><?php _e('Maximum Rating') ?></th>
    169 <td><fieldset><legend class="invisible"><span><?php _e('Maximum Rating') ?></span></legend>
     169<td><fieldset><legend class="screen-reader-text"><span><?php _e('Maximum Rating') ?></span></legend>
    170170
    171171<?php
     
    181181<tr valign="top">
    182182<th scope="row"><?php _e('Default Avatar') ?></th>
    183 <td class="defaultavatarpicker"><fieldset><legend class="invisible"><span><?php _e('Default Avatar') ?></span></legend>
     183<td class="defaultavatarpicker"><fieldset><legend class="screen-reader-text"><span><?php _e('Default Avatar') ?></span></legend>
    184184
    185185<?php _e('For users without a custom avatar of their own, you can either display a generic logo or a generated one based on their e-mail address.'); ?><br />
Note: See TracChangeset for help on using the changeset viewer.