WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/04/2008 10:37:06 AM (12 years ago)
Author:
westi
Message:

Associate lables with form fields. Fixes #6859 props MarcoZ.

File:
1 edited

Legend:

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

    r7879 r7883  
    1515<tr valign="top">
    1616<th scope="row"><?php _e('Default article settings') ?></th>
    17 <td>
     17<td><fieldset><legend class="hidden"><?php _e('Default article settings') ?></legend>
    1818<label for="default_pingback_flag">
    1919<input name="default_pingback_flag" type="checkbox" id="default_pingback_flag" value="1" <?php checked('1', get_option('default_pingback_flag')); ?> />
     
    2929<br />
    3030<small><em><?php echo '(' . __('These settings may be overridden for individual articles.') . ')'; ?></em></small>
    31 </td>
     31</fieldset></td>
    3232</tr>
    3333<tr valign="top">
    3434<th scope="row"><?php _e('E-mail me whenever') ?></th>
    35 <td>
     35<td><fieldset><legend class="hidden"><?php _e('E-mail me whenever') ?></legend>
    3636<label for="comments_notify">
    3737<input name="comments_notify" type="checkbox" id="comments_notify" value="1" <?php checked('1', get_option('comments_notify')); ?> />
     
    4141<input name="moderation_notify" type="checkbox" id="moderation_notify" value="1" <?php checked('1', get_option('moderation_notify')); ?> />
    4242<?php _e('A comment is held for moderation') ?> </label>
    43 </td>
     43</fieldset></td>
    4444</tr>
    4545<tr valign="top">
    4646<th scope="row"><?php _e('Before a comment appears') ?></th>
    47 <td>
     47<td><fieldset><legend class="hidden"><?php _e('Before a comment appears') ?></legend>
    4848<label for="comment_moderation">
    4949<input name="comment_moderation" type="checkbox" id="comment_moderation" value="1" <?php checked('1', get_option('comment_moderation')); ?> />
     
    5353<br />
    5454<label for="comment_whitelist"><input type="checkbox" name="comment_whitelist" id="comment_whitelist" value="1" <?php checked('1', get_option('comment_whitelist')); ?> /> <?php _e('Comment author must have a previously approved comment') ?></label>
    55 </td>
     55</fieldset></td>
    5656</tr>
    5757<tr valign="top">
    5858<th scope="row"><?php _e('Comment Moderation') ?></th>
    59 <td>
    60 <p><?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" size="3" value="' . get_option('comment_max_links'). '" />' ) ?></p>
     59<td><fieldset><legend class="hidden"><?php _e('Comment Moderation') ?></legend>
     60<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" size="3" value="' . get_option('comment_max_links'). '" />' ) ?></label></p>
    6161
    62 <p><?php _e('When a comment contains any of these words in its content, name, URL, e-mail, or IP, it will be held in the <a href="edit-comments.php?comment_status=moderated">moderation queue</a>. One word or IP per line. It will match inside words, so "press" will match "WordPress".') ?></p>
     62<p><label for="moderation_keys"><?php _e('When a comment contains any of these words in its content, name, URL, e-mail, or IP, it will be held in the <a href="edit-comments.php?comment_status=moderated">moderation queue</a>. One word or IP per line. It will match inside words, so "press" will match "WordPress".') ?></label></p>
    6363<p>
    6464<textarea name="moderation_keys" cols="60" rows="10" id="moderation_keys" style="width: 98%; font-size: 12px;" class="code"><?php form_option('moderation_keys'); ?></textarea>
    6565</p>
    66 </td>
     66</fieldset></td>
    6767</tr>
    6868<tr valign="top">
    6969<th scope="row"><?php _e('Comment Blacklist') ?></th>
    70 <td>
    71 <p><?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 "press" will match "WordPress".') ?></p>
     70<td><fieldset><legend class="hidden"><?php _e('Comment Blacklist') ?></legend>
     71<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 "press" will match "WordPress".') ?></label></p>
    7272<p>
    7373<textarea name="blacklist_keys" cols="60" rows="10" id="blacklist_keys" style="width: 98%; font-size: 12px;" class="code"><?php form_option('blacklist_keys'); ?></textarea>
    7474</p>
    75 </td>
     75</fieldset></td>
    7676</tr>
    7777</table>
     
    8686<tr valign="top">
    8787<th scope="row"><?php _e('Avatar Display') ?></th>
    88 <td>
     88<td><fieldset><legend class="hidden"><?php _e('Avatar display') ?></legend>
    8989<?php
    9090    $yesorno = array(0 => __("Don&#8217;t show Avatars"), 1 => __('Show Avatars'));
     
    9494    }
    9595?>
    96 </td>
     96</fieldset></td>
    9797</tr>
    9898<tr valign="top">
    9999<th scope="row"><?php _e('Maximum Rating') ?></th>
    100 <td>
     100<td><fieldset><legend class="hidden"><?php _e('Maximum Rating') ?></legend>
    101101
    102102<?php
     
    108108?>
    109109
    110 </td>
     110</fieldset></td>
    111111</tr>
    112112<tr valign="top">
    113113<th scope="row"><?php _e('Default Avatar') ?></th>
    114 <td class="defaultavatarpicker">
     114<td class="defaultavatarpicker"><fieldset><legend class="hidden"><?php _e('Default Avatar') ?></legend>
    115115
    116116<?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 />
     
    143143?>
    144144
    145 </td>
     145</fieldset></td>
    146146</tr>
    147147
Note: See TracChangeset for help on using the changeset viewer.