Make WordPress Core

Ticket #6859: wp-6859-4.diff

File wp-6859-4.diff, 66.1 KB (added by MarcoZ, 17 years ago)
  1. All closable boxes have their heading label link removed from previous patch, and a hidden label has been added.
  • wp-admin/categories.php

     
    126126<?php endif; ?>
    127127
    128128<p id="post-search">
     129        <label class="hidden" for="post-search-input"><?php _e('Search Categories'); ?>:</label>
    129130        <input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" />
    130131        <input type="submit" value="<?php _e( 'Search Categories' ); ?>" class="button" />
    131132</p>
  • wp-admin/edit-comments.php

     
    116116</ul>
    117117
    118118<p id="post-search">
     119        <label class="hidden" for="post-search-input"><?php _e( 'Search Comments' ); ?>:</label>
    119120        <input type="text" id="post-search-input" name="s" value="<?php echo $search; ?>" />
    120121        <input type="submit" value="<?php _e( 'Search Comments' ); ?>" class="button" />
    121122</p>
  • wp-admin/edit-form-advanced.php

     
    8484
    8585<div class="inside">
    8686
    87 <p><strong><?php _e('Publish Status') ?></strong></p>
     87<p><strong><label for='post_status'><?php _e('Publish Status') ?></label></strong></p>
    8888<p>
    89 <select name='post_status' tabindex='4'>
     89<select name='post_status' id='post_status' tabindex='4'>
    9090<?php if ( current_user_can('publish_posts') ) : // Contributors only get "Unpublished" and "Pending Review" ?>
    9191<option<?php selected( $post->post_status, 'publish' ); selected( $post->post_status, 'private' );?> value='publish'><?php _e('Published') ?></option>
    9292<?php if ( 'future' == $post->post_status ) : ?>
     
    180180
    181181<div id="post-body">
    182182<div id="titlediv">
    183 <h3><?php _e('Title') ?></h3>
     183<h3><label for="title"><?php _e('Title') ?></label></h3>
    184184<div id="titlewrap">
    185185        <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape($post->post_title); ?>" id="title" autocomplete="off" />
    186186</div>
     
    195195</div>
    196196
    197197<div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea">
    198 <h3><?php _e('Post') ?></h3>
     198<h3><label for="content"><?php _e('Post') ?></label></h3>
    199199<?php the_editor($post->post_content); ?>
    200200<?php wp_nonce_field( 'autosave', 'autosavenonce', false ); ?>
    201201<?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
     
    207207<?php echo $form_prevstatus ?>
    208208
    209209<div id="tagsdiv" class="postbox <?php echo postbox_classes('tagsdiv', 'post'); ?>">
    210 <h3><?php _e('Tags'); ?></h3>
     210<h3><label for="tags-input"><?php _e('Tags'); ?></label></h3>
    211211<div class="inside">
    212212<p id="jaxtag"><input type="text" name="tags_input" class="tags-input" id="tags-input" size="40" tabindex="3" value="<?php echo get_tags_to_edit( $post_ID ); ?>" /></p>
    213213<div id="tagchecklist"></div>
     
    257257
    258258<div id="postexcerpt" class="postbox <?php echo postbox_classes('postexcerpt', 'post'); ?>">
    259259<h3><?php _e('Excerpt') ?></h3>
    260 <div class="inside"><textarea rows="1" cols="40" name="excerpt" tabindex="6" id="excerpt"><?php echo $post->post_excerpt ?></textarea>
     260<div class="inside"><label class="hidden" for="excerpt"><?php _e('Excerpt') ?></label><textarea rows="1" cols="40" name="excerpt" tabindex="6" id="excerpt"><?php echo $post->post_excerpt ?></textarea>
    261261<p><?php _e('Excerpts are optional hand-crafted summaries of your content. You can <a href="http://codex.wordpress.org/Template_Tags/the_excerpt" target="_blank">use them in your template</a>'); ?></p>
    262262</div>
    263263</div>
     
    265265<div id="trackbacksdiv" class="postbox <?php echo postbox_classes('trackbacksdiv', 'post'); ?>">
    266266<h3><?php _e('Trackbacks') ?></h3>
    267267<div class="inside">
    268 <p><?php _e('Send trackbacks to:'); ?> <?php echo $form_trackback; ?><br /> (<?php _e('Separate multiple URLs with spaces'); ?>)</p>
     268<p><label for="trackback"><?php _e('Send trackbacks to:'); ?></label> <?php echo $form_trackback; ?><br /> (<?php _e('Separate multiple URLs with spaces'); ?>)</p>
    269269<p><?php _e('Trackbacks are a way to notify legacy blog systems that you&#8217;ve linked to them. If you link other WordPress blogs they&#8217;ll be notified automatically using <a href="http://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments" target="_blank">pingbacks</a>, no other action necessary.'); ?></p>
    270270<?php
    271271if ( ! empty($pings) )
     
    311311<div id="passworddiv" class="postbox <?php echo postbox_classes('passworddiv', 'post'); ?>">
    312312<h3><?php _e('Password Protect This Post') ?></h3>
    313313<div class="inside">
    314 <p><input name="post_password" type="text" size="25" id="post_password" value="<?php echo attribute_escape( $post->post_password ); ?>" /></p>
     314<p><label class="hidden" for="post_password"><?php _e('Password Protect This Post') ?></label><input name="post_password" type="text" size="25" id="post_password" value="<?php echo attribute_escape( $post->post_password ); ?>" /></p>
    315315<p><?php _e('Setting a password will require people who visit your blog to enter the above password to view this post and its comments.'); ?></p>
    316316</div>
    317317</div>
     
    319319<div id="slugdiv" class="postbox <?php echo postbox_classes('slugdiv', 'post'); ?>">
    320320<h3><?php _e('Post Slug') ?></h3>
    321321<div class="inside">
    322 <input name="post_name" type="text" size="13" id="post_name" value="<?php echo attribute_escape( $post->post_name ); ?>" />
     322<label class="hidden" for="post_name"><?php _e('Post Slug') ?></label><input name="post_name" type="text" size="13" id="post_name" value="<?php echo attribute_escape( $post->post_name ); ?>" />
    323323</div>
    324324</div>
    325325
  • wp-admin/edit-form-comment.php

     
    2222
    2323<div class="inside">
    2424
    25 <p><strong><?php _e('Approval Status') ?></strong></p>
     25<p><strong><label for='comment_status'><?php _e('Approval Status') ?></label></strong></p>
    2626<p>
    27 <select name='comment_status'>
     27<select name='comment_status' id='comment_status'>
    2828<option<?php selected( $comment->comment_approved, '1' ); ?> value='1'><?php _e('Approved') ?></option>
    2929<option<?php selected( $comment->comment_approved, '0' ); ?> value='0'><?php _e('Moderated') ?></option>
    3030<option<?php selected( $comment->comment_approved, 'spam' ); ?> value='spam'><?php _e('Spam') ?></option>
     
    6464
    6565<div id="post-body">
    6666<div id="namediv" class="stuffbox">
    67 <h3><?php _e('Name') ?></h3>
     67<h3><label for="name"><?php _e('Name') ?></label></h3>
    6868<div class="inside">
    6969<input type="text" name="newcomment_author" size="30" value="<?php echo attribute_escape( $comment->comment_author ); ?>" tabindex="1" id="name" />
    7070</div>
    7171</div>
    7272
    7373<div id="emaildiv" class="stuffbox">
    74 <h3><?php _e('E-mail') ?></h3>
     74<h3><label for="email"><?php _e('E-mail') ?></label></h3>
    7575<div class="inside">
    7676<input type="text" name="newcomment_author_email" size="30" value="<?php echo attribute_escape( $comment->comment_author_email ); ?>" tabindex="2" id="email" />
    7777</div>
    7878</div>
    7979
    8080<div id="uridiv" class="stuffbox">
    81 <h3><?php _e('URL') ?></h3>
     81<h3><label for="newcomment_author_url"><?php _e('URL') ?></label></h3>
    8282<div class="inside">
    8383<input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" value="<?php echo attribute_escape( $comment->comment_author_url ); ?>" tabindex="3" />
    8484</div>
    8585</div>
    8686
    8787<div id="postdiv" class="postarea">
    88 <h3><?php _e('Comment') ?></h3>
     88<h3><label for="content"><?php _e('Comment') ?></label></h3>
    8989<?php the_editor($comment->comment_content, 'content', 'newcomment_author_url', false, 4); ?>
    9090<?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
    9191</div>
  • wp-admin/edit-link-categories.php

     
    6262<?php endif; ?>
    6363
    6464<p id="post-search">
     65        <label class="hidden" for="post-search-input"><?php _e( 'Search Categories' ); ?>:</label>
    6566        <input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" />
    6667        <input type="submit" value="<?php _e( 'Search Categories' ); ?>" class="button" />
    6768</p>
  • wp-admin/edit-link-form.php

     
    7474
    7575<div id="post-body">
    7676<div id="namediv" class="stuffbox">
    77 <h3><?php _e('Name') ?></h3>
     77<h3><label for="link_name"><?php _e('Name') ?></label></h3>
    7878<div class="inside">
    7979        <input type="text" name="link_name" size="30" tabindex="1" value="<?php echo $link->link_name; ?>" id="link_name" /><br />
    8080    <?php _e('Example: Nifty blogging software'); ?>
     
    8282</div>
    8383
    8484<div id="addressdiv" class="stuffbox">
    85 <h3><?php _e('Web Address') ?></h3>
     85<h3><label for="link_url"><?php _e('Web Address') ?></label></h3>
    8686<div class="inside">
    8787        <input type="text" name="link_url" size="30" tabindex="1" value="<?php echo $link->link_url; ?>" id="link_url" /><br />
    8888    <?php _e('Example: <code>http://wordpress.org/</code> &#8212; don&#8217;t forget the <code>http://</code>'); ?>
     
    9090</div>
    9191
    9292<div id="descriptiondiv" class="stuffbox">
    93 <h3><?php _e('Description') ?></h3>
     93<h3><label for="link_description"><?php _e('Description') ?></label></h3>
    9494<div class="inside">
    9595        <input type="text" name="link_description" size="30" tabindex="1" value="<?php echo $link->link_description; ?>" id="link_description" /><br />
    9696    <?php _e('This will be shown when someone hovers over the link in the blogroll, or optionally below the link.'); ?>
     
    104104<div id="category-adder" class="wp-hidden-children">
    105105        <h4><a id="category-add-toggle" href="#category-add"><?php _e( '+ Add New Category' ); ?></a></h4>
    106106        <p id="link-category-add" class="wp-hidden-child">
     107                <label class="hidden" for="newcat"><?php _e( '+ Add New Category' ); ?></label>
    107108                <input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php _e( 'New category name' ); ?>" />
    108109                <input type="button" id="category-add-sumbit" class="add:categorychecklist:linkcategorydiv button" value="<?php _e( 'Add' ); ?>" />
    109110                <?php wp_nonce_field( 'add-link-category', '_ajax_nonce', false ); ?>
     
    138139<div id="linktargetdiv" class="postbox <?php echo postbox_classes('linktargetdiv', 'link'); ?>">
    139140<h3><?php _e('Target') ?></h3>
    140141<div class="inside">
     142<fieldset><legend class="hidden"><?php _e('Target') ?></legend>
    141143<label for="link_target_blank" class="selectit">
    142144<input id="link_target_blank" type="radio" name="link_target" value="_blank" <?php echo(($link->link_target == '_blank') ? 'checked="checked"' : ''); ?> />
    143145<code>_blank</code></label><br />
     
    147149<label for="link_target_none" class="selectit">
    148150<input id="link_target_none" type="radio" name="link_target" value="" <?php echo(($link->link_target == '') ? 'checked="checked"' : ''); ?> />
    149151<?php _e('none') ?></label>
     152</fieldset>
    150153<p><?php _e('Choose the frame your link targets. Essentially this means if you choose <code>_blank</code> your link will open in a new window.'); ?></p>
    151154</div>
    152155</div>
     
    156159<div class="inside">
    157160<table class="editform" style="width: 100%;" cellspacing="2" cellpadding="5">
    158161        <tr>
    159                 <th style="width: 20%;" scope="row"><?php _e('rel:') ?></th>
     162                <th style="width: 20%;" scope="row"><label for="link_rel"><?php _e('rel:') ?></label></th>
    160163                <td style="width: 80%;"><input type="text" name="link_rel" id="link_rel" size="50" value="<?php echo $link->link_rel; ?>" /></td>
    161164        </tr>
    162165        <tr>
     
    164167                        <table cellpadding="3" cellspacing="5" class="form-table">
    165168                                <tr>
    166169                                        <th scope="row"> <?php _e('identity') ?> </th>
    167                                         <td>
     170                                        <td><fieldset><legend class="hidden"> <?php _e('identity') ?> </legend>
    168171                                                <label for="me">
    169172                                                <input type="checkbox" name="identity" value="me" id="me" <?php xfn_check('identity', 'me'); ?> />
    170173                                                <?php _e('another web address of mine') ?></label>
    171                                         </td>
     174                                        </fieldset></td>
    172175                                </tr>
    173176                                <tr>
    174177                                        <th scope="row"> <?php _e('friendship') ?> </th>
    175                                         <td>
     178                                        <td><fieldset><legend class="hidden"> <?php _e('friendship') ?> </legend>
    176179                                                <label for="contact">
    177180                                                <input class="valinp" type="radio" name="friendship" value="contact" id="contact" <?php xfn_check('friendship', 'contact', 'radio'); ?> /> <?php _e('contact') ?></label>
    178181                                                <label for="acquaintance">
     
    181184                                                <input class="valinp" type="radio" name="friendship" value="friend" id="friend" <?php xfn_check('friendship', 'friend', 'radio'); ?> /> <?php _e('friend') ?></label>
    182185                                                <label for="friendship">
    183186                                                <input name="friendship" type="radio" class="valinp" value="" id="friendship" <?php xfn_check('friendship', '', 'radio'); ?> /> <?php _e('none') ?></label>
    184                                         </td>
     187                                        </fieldset></td>
    185188                                </tr>
    186189                                <tr>
    187190                                        <th scope="row"> <?php _e('physical') ?> </th>
    188                                         <td>
     191                                        <td><fieldset><legend class="hidden"> <?php _e('physical') ?> </legend>
    189192                                                <label for="met">
    190193                                                <input class="valinp" type="checkbox" name="physical" value="met" id="met" <?php xfn_check('physical', 'met'); ?> />
    191194                                                <?php _e('met') ?></label>
    192                                         </td>
     195                                        </fieldset></td>
    193196                                </tr>
    194197                                <tr>
    195198                                        <th scope="row"> <?php _e('professional') ?> </th>
    196                                         <td>
     199                                        <td><fieldset><legend class="hidden"> <?php _e('professional') ?> </legend>
    197200                                                <label for="co-worker">
    198201                                                <input class="valinp" type="checkbox" name="professional" value="co-worker" id="co-worker" <?php xfn_check('professional', 'co-worker'); ?> />
    199202                                                <?php _e('co-worker') ?></label>
    200203                                                <label for="colleague">
    201204                                                <input class="valinp" type="checkbox" name="professional" value="colleague" id="colleague" <?php xfn_check('professional', 'colleague'); ?> />
    202205                                                <?php _e('colleague') ?></label>
    203                                         </td>
     206                                        </fieldset></td>
    204207                                </tr>
    205208                                <tr>
    206209                                        <th scope="row"> <?php _e('geographical') ?> </th>
    207                                         <td>
     210                                        <td><fieldset><legend class="hidden"> <?php _e('geographical') ?> </legend>
    208211                                                <label for="co-resident">
    209212                                                <input class="valinp" type="radio" name="geographical" value="co-resident" id="co-resident" <?php xfn_check('geographical', 'co-resident', 'radio'); ?> />
    210213                                                <?php _e('co-resident') ?></label>
     
    214217                                                <label for="geographical">
    215218                                                <input class="valinp" type="radio" name="geographical" value="" id="geographical" <?php xfn_check('geographical', '', 'radio'); ?> />
    216219                                                <?php _e('none') ?></label>
    217                                         </td>
     220                                        </fieldset></td>
    218221                                </tr>
    219222                                <tr>
    220223                                        <th scope="row"> <?php _e('family') ?> </th>
    221                                         <td>
     224                                        <td><fieldset><legend class="hidden"> <?php _e('family') ?> </legend>
    222225                                                <label for="child">
    223226                                                <input class="valinp" type="radio" name="family" value="child" id="child" <?php xfn_check('family', 'child', 'radio'); ?>  />
    224227                                                <?php _e('child') ?></label>
     
    237240                                                <label for="family">
    238241                                                <input class="valinp" type="radio" name="family" value="" id="family" <?php xfn_check('family', '', 'radio'); ?> />
    239242                                                <?php _e('none') ?></label>
    240                                         </td>
     243                                        </fieldset></td>
    241244                                </tr>
    242245                                <tr>
    243246                                        <th scope="row"> <?php _e('romantic') ?> </th>
    244                                         <td>
     247                                        <td><fieldset><legend class="hidden"> <?php _e('romantic') ?> </legend>
    245248                                                <label for="muse">
    246249                                                <input class="valinp" type="checkbox" name="romantic" value="muse" id="muse" <?php xfn_check('romantic', 'muse'); ?> />
    247250                                                <?php _e('muse') ?></label>
     
    254257                                                <label for="romantic">
    255258                                                <input class="valinp" type="checkbox" name="romantic" value="sweetheart" id="romantic" <?php xfn_check('romantic', 'sweetheart'); ?> />
    256259                                                <?php _e('sweetheart') ?></label>
    257                                         </td>
     260                                        </fieldset></td>
    258261                                </tr>
    259262                        </table>
    260263                </td>
  • wp-admin/edit-page-form.php

     
    6969
    7070<div class="inside">
    7171
    72 <p><strong><?php _e('Publish Status') ?></strong></p>
     72<p><strong><label for='post_status'><?php _e('Publish Status') ?></label></strong></p>
    7373<p>
    74 <select name='post_status' tabindex='4'>
     74<select name='post_status' tabindex='4' id='post_status'>
    7575<?php if ( current_user_can('publish_pages') ) : ?>
    7676<option<?php selected( $post->post_status, 'publish' ); selected( $post->post_status, 'private' );?> value='publish'><?php _e('Published') ?></option>
    7777<?php else: ?>
     
    159159
    160160<div id="post-body">
    161161<div id="titlediv">
    162 <h3><?php _e('Title') ?></h3>
     162<h3><label for="title"><?php _e('Title') ?></label></h3>
    163163<div id="titlewrap">
    164164  <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape( $post->post_title ); ?>" id="title" autocomplete="off" />
    165165</div>
     
    174174</div>
    175175
    176176<div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea">
    177 <h3><?php _e('Page') ?></h3>
     177<h3><label for="content"><?php _e('Page') ?></label></h3>
    178178<?php the_editor($post->post_content); ?>
    179179<?php wp_nonce_field( 'autosave', 'autosavenonce', false ); ?>
    180180<?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
     
    223223<div id="pagepassworddiv" class="postbox <?php echo postbox_classes('pagepassworddiv', 'page'); ?>">
    224224<h3><?php _e('Password Protect This Page') ?></h3>
    225225<div class="inside">
    226 <p><input name="post_password" type="text" size="25" id="post_password" value="<?php echo attribute_escape( $post->post_password ); ?>" /></p>
     226<p><label class="hidden" for="post_password"><?php _e('Password Protect This Page') ?></label><input name="post_password" type="text" size="25" id="post_password" value="<?php echo attribute_escape( $post->post_password ); ?>" /></p>
    227227<p><?php _e('Setting a password will require people who visit your blog to enter the above password to view this page and its comments.'); ?></p>
    228228</div>
    229229</div>
     
    231231<div id="pageslugdiv" class="postbox <?php echo postbox_classes('pageslugdiv', 'page'); ?>">
    232232<h3><?php _e('Page Slug') ?></h3>
    233233<div class="inside">
    234 <input name="post_name" type="text" size="13" id="post_name" value="<?php echo attribute_escape( $post->post_name ); ?>" />
     234<label class="hidden" for="post_name"><?php _e('Page Slug') ?></label><input name="post_name" type="text" size="13" id="post_name" value="<?php echo attribute_escape( $post->post_name ); ?>" />
    235235</div>
    236236</div>
    237237
    238238<div id="pageparentdiv" class="postbox <?php echo postbox_classes('pageparentdiv', 'page'); ?>">
    239239<h3><?php _e('Page Parent') ?></h3>
    240240<div class="inside">
    241 <select name="parent_id">
     241<label class="hidden" for="parent_id"><?php _e('Page Parent') ?></label><select name="parent_id" id="parent_id">
    242242<option value='0'><?php _e('Main Page (no parent)'); ?></option>
    243243<?php parent_dropdown($post->post_parent); ?>
    244244</select>
     
    250250<div id="pagetemplatediv" class="postbox <?php echo postbox_classes('pagetemplatediv', 'page'); ?>">
    251251<h3><?php _e('Page Template') ?></h3>
    252252<div class="inside">
    253 <select name="page_template">
     253<label class="hidden" for="page_template"><?php _e('Page Template') ?></label><select name="page_template" id="page_template">
    254254<option value='default'><?php _e('Default Template'); ?></option>
    255255<?php page_template_dropdown($post->page_template); ?>
    256256</select>
     
    262262<div id="pageorderdiv" class="postbox <?php echo postbox_classes('pageorderdiv', 'page'); ?>">
    263263<h3><?php _e('Page Order') ?></h3>
    264264<div class="inside">
    265 <p><input name="menu_order" type="text" size="4" id="menu_order" value="<?php echo $post->menu_order ?>" /></p>
     265<p><label class="hidden" for="menu_order"><?php _e('Page Order') ?></label><input name="menu_order" type="text" size="4" id="menu_order" value="<?php echo $post->menu_order ?>" /></p>
    266266<p><?php _e('Pages are usually ordered alphabetically, but you can put a number above to change the order pages appear in. (We know this is a little janky, it&#8217;ll be better in future releases.)'); ?></p>
    267267</div>
    268268</div>
  • wp-admin/edit-pages.php

     
    111111?>
    112112
    113113<p id="post-search">
     114        <label class="hidden" for="post-search-input"><?php _e( 'Search Pages' ); ?>:</label>
    114115        <input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" />
    115116        <input type="submit" value="<?php _e( 'Search Pages' ); ?>" class="button" />
    116117</p>
  • wp-admin/edit-tags.php

     
    133133<?php endif; ?>
    134134
    135135<p id="post-search">
     136        <label class="hidden" for="post-search-input"><?php _e( 'Search Tags' ); ?>:</label>
    136137        <input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" />
    137138        <input type="submit" value="<?php _e( 'Search Tags' ); ?>" class="button" />
    138139</p>
  • wp-admin/edit.php

     
    116116?>
    117117
    118118<p id="post-search">
     119        <label class="hidden" for="post-search-input"><?php _e( 'Search Posts' ); ?>:</label>
    119120        <input type="text" id="post-search-input" name="s" value="<?php the_search_query(); ?>" />
    120121        <input type="submit" value="<?php _e( 'Search Posts' ); ?>" class="button" />
    121122</p>
  • wp-admin/export.php

     
    2222
    2323<table class="form-table">
    2424<tr>
    25 <th><?php _e('Restrict Author'); ?></th>
     25<th><label for="author"><?php _e('Restrict Author'); ?></label></th>
    2626<td>
    27 <select name="author">
     27<select name="author" id="author">
    2828<option value="all" selected="selected"><?php _e('All Authors'); ?></option>
    2929<?php
    3030$authors = $wpdb->get_col( "SELECT post_author FROM $wpdb->posts GROUP BY post_author" );
  • wp-admin/import/greymatter.php

     
    3838<h3><?php _e('Second step: GreyMatter details:') ?></h3>
    3939<table class="form-table">
    4040<tr>
    41 <td><?php _e('Path to GM files:') ?></td>
    42 <td><input type="text" style="width:300px" name="gmpath" value="/home/my/site/cgi-bin/greymatter/" /></td>
     41<td><label for="gmpath"><?php _e('Path to GM files:') ?></label></td>
     42<td><input type="text" style="width:300px" name="gmpath" id="gmpath" value="/home/my/site/cgi-bin/greymatter/" /></td>
    4343</tr>
    4444<tr>
    45 <td><?php _e('Path to GM entries:') ?></td>
    46 <td><input type="text" style="width:300px" name="archivespath" value="/home/my/site/cgi-bin/greymatter/archives/" /></td>
     45<td><label for="archivespath"><?php _e('Path to GM entries:') ?></label></td>
     46<td><input type="text" style="width:300px" name="archivespath" id="archivespath" value="/home/my/site/cgi-bin/greymatter/archives/" /></td>
    4747</tr>
    4848<tr>
    49 <td><?php _e("Last entry's number:") ?></td>
    50 <td><input type="text" name="lastentry" value="00000001" /><br />
     49<td><label for="lastentry"><?php _e("Last entry's number:") ?></label></td>
     50<td><input type="text" name="lastentry" id="lastentry" value="00000001" /><br />
    5151        <?php _e("This importer will search for files 00000001.cgi to 000-whatever.cgi,<br />so you need to enter the number of the last GM post here.<br />(if you don't know that number, just log into your FTP and look it out<br />in the entries' folder)") ?></td>
    5252</tr>
    5353</table>
  • wp-admin/import/mt.php

     
    166166                $j = -1;
    167167                foreach ($authors as $author) {
    168168                        ++ $j;
    169                         echo '<li>'.__('Current author:').' <strong>'.$author.'</strong><br />'.sprintf(__('Create user %1$s or map to existing'), ' <input type="text" value="'.$author.'" name="'.'user[]'.'" maxlength="30"> <br />');
     169                        echo '<li><label>'.__('Current author:').' <strong>'.$author.'</strong><br />'.sprintf(__('Create user %1$s or map to existing'), ' <input type="text" value="'.$author.'" name="'.'user[]'.'" maxlength="30"> <br />');
    170170                        $this->users_form($j);
    171                         echo '</li>';
     171                        echo '</label></li>';
    172172                }
    173173
    174174                echo '<input type="submit" value="'.__('Submit').'">'.'<br />';
  • wp-admin/import/wordpress.php

     
    218218        function users_form($n, $author) {
    219219
    220220                if ( $this->allow_create_users() ) {
    221                         printf(__('Create user %1$s or map to existing'), ' <input type="text" value="'.$author.'" name="'.'user_create['.intval($n).']'.'" maxlength="30"> <br />');
     221                        printf('<label>'.__('Create user %1$s or map to existing'), ' <input type="text" value="'.$author.'" name="'.'user_create['.intval($n).']'.'" maxlength="30"></label> <br />');
    222222                }
    223223                else {
    224224                        echo __('Map to existing').'<br />';
  • wp-admin/includes/media.php

     
    956956<input type="hidden" name="post_mime_type" value="<?php echo attribute_escape( $_GET['post_mime_type'] ); ?>" />
    957957
    958958<div id="search-filter">
     959        <label class="hidden" for="post-search-input"><?php _e('Search Media');?>:</label>
    959960        <input type="text" id="post-search-input" name="s" value="<?php the_search_query(); ?>" />
    960961        <input type="submit" value="<?php echo attribute_escape( __( 'Search Media' ) ); ?>" class="button" />
    961962</div>
  • wp-admin/includes/template.php

     
    774774        $delete_nonce = wp_create_nonce( 'delete-meta_' . $entry['meta_id'] );
    775775
    776776        $r .= "\n\t<tr id='meta-{$entry['meta_id']}' class='$style'>";
    777         $r .= "\n\t\t<td valign='top'><input name='meta[{$entry['meta_id']}][key]' tabindex='6' type='text' size='20' value='{$entry['meta_key']}' /></td>";
    778         $r .= "\n\t\t<td><textarea name='meta[{$entry['meta_id']}][value]' tabindex='6' rows='2' cols='30'>{$entry['meta_value']}</textarea></td>";
     777        $r .= "\n\t\t<td valign='top'><label class='hidden' for='meta[{$entry['meta_id']}][key]'>" . __( 'Key' ) . "</label><input name='meta[{$entry['meta_id']}][key]' id='meta[{$entry['meta_id']}][key]' tabindex='6' type='text' size='20' value='{$entry['meta_key']}' /></td>";
     778        $r .= "\n\t\t<td><label class='hidden' for='meta[{$entry['meta_id']}][value]'>" . __( 'Value' ) . "</label><textarea name='meta[{$entry['meta_id']}][value]' id='meta[{$entry['meta_id']}][value]' tabindex='6' rows='2' cols='30'>{$entry['meta_value']}</textarea></td>";
    779779        $r .= "\n\t\t<td style='text-align: center;'><input name='updatemeta' type='submit' tabindex='6' value='".attribute_escape(__( 'Update' ))."' class='add:the-list:meta-{$entry['meta_id']}::_ajax_nonce=$update_nonce updatemeta' /><br />";
    780780        $r .= "\n\t\t<input name='deletemeta[{$entry['meta_id']}]' type='submit' ";
    781781        $r .= "class='delete:the-list:meta-{$entry['meta_id']}::_ajax_nonce=$delete_nonce deletemeta' tabindex='6' value='".attribute_escape(__( 'Delete' ))."' />";
     
    800800<p><strong><?php _e( 'Add a new custom field:' ) ?></strong></p>
    801801<table id="newmeta" cellspacing="3" cellpadding="3">
    802802        <tr>
    803 <th colspan="2"><?php _e( 'Key' ) ?></th>
    804 <th><?php _e( 'Value' ) ?></th>
     803<th colspan="2"><label <?php if ( $keys ) : ?> for="metakeyselect" <?php else : ?> for="metakeyinput" <?php endif; ?>><?php _e( 'Key' ) ?></label></th>
     804<th><label for="metavalue"><?php _e( 'Value' ) ?></label></th>
    805805</tr>
    806806        <tr valign="top">
    807807                <td style="width: 18%;" class="textright">
     
    815815                echo "\n\t<option value='$key'>$key</option>";
    816816        }
    817817?>
    818 </select> <?php _e( 'or' ); ?>
     818</select> <label for="metakeyinput"><?php _e( 'or' ); ?></label>
    819819<?php endif; ?>
    820820</td>
    821821<td><input type="text" id="metakeyinput" name="metakeyinput" tabindex="7" /></td>
  • wp-admin/link-import.php

     
    3030<input type="hidden" name="step" value="1" />
    3131<input type="hidden" name="MAX_FILE_SIZE" value="30000" />
    3232<div style="width: 48%;" class="alignleft">
    33 <h3><?php _e('Specify an OPML URL:'); ?></h3>
    34 <input type="text" name="opml_url" size="50" style="width: 90%;" value="http://" />
     33<h3><label for="opml_url"><?php _e('Specify an OPML URL:'); ?></label></h3>
     34<input type="text" name="opml_url" id="opml_url" size="50" style="width: 90%;" value="http://" />
    3535</div>
    3636
    3737<div style="width: 48%;" class="alignleft">
    38 <h3><?php _e('Or choose from your local disk:'); ?></h3>
     38<h3><label for="userfile"><?php _e('Or choose from your local disk:'); ?></label></h3>
    3939<input id="userfile" name="userfile" type="file" size="30" />
    4040</div>
    4141
    4242</div>
    4343
    44 <p style="clear: both; margin-top: 1em;"><?php _e('Now select a category you want to put these links in.') ?><br />
    45 <?php _e('Category:') ?> <select name="cat_id">
     44<p style="clear: both; margin-top: 1em;"><label for="cat_id"><?php _e('Now select a category you want to put these links in.') ?></label><br />
     45<?php _e('Category:') ?> <select name="cat_id" id="cat_id">
    4646<?php
    4747$categories = get_terms('link_category', 'get=all');
    4848foreach ($categories as $category) {
  • wp-admin/link-manager.php

     
    7878<h2><?php printf( __( 'Manage Links (<a href="%s">add new</a>)' ), 'link-add.php' ); ?></h2>
    7979
    8080<p id="post-search">
     81        <label class="hidden" for="post-search-input"><?php _e( 'Search Links' ); ?>:</label>
    8182        <input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" />
    8283        <input type="submit" value="<?php _e( 'Search Links' ); ?>" class="button" />
    8384</p>
  • wp-admin/options-discussion.php

     
    1414<table class="form-table">
    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')); ?> />
    2020<?php _e('Attempt to notify any blogs linked to from the article (slows down posting.)') ?></label>
     
    2828<?php _e('Allow people to post comments on the article') ?></label>
    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')); ?> />
    3838<?php _e('Anyone posts a comment') ?> </label>
     
    4040<label for="moderation_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')); ?> />
    5050<?php _e('An administrator must always approve the comment') ?> </label>
     
    5252<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>
    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>
    7878
     
    8585<table class="form-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'));
    9191        foreach ( $yesorno as $key => $value) {
     
    9393                echo "\n\t<label><input type='radio' name='show_avatars' value='$key' $selected> $value</label><br />";
    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
    103103$ratings = array( 'G' => __('G &#8212; Suitable for all audiences'), 'PG' => __('PG &#8212; Possibly offensive, usually for audiences 13 and above'), 'R' => __('R &#8212; Intended for adult audiences above 17'), 'X' => __('X &#8212; Even more mature than above'));
     
    107107endforeach;
    108108?>
    109109
    110 </td>
     110</fieldset></td>
    111111</tr>
    112112
    113113</table>
  • wp-admin/options-general.php

     
    1313<?php wp_nonce_field('update-options') ?>
    1414<table class="form-table">
    1515<tr valign="top">
    16 <th scope="row"><?php _e('Blog Title') ?></th>
     16<th scope="row"><label for="blogname"><?php _e('Blog Title') ?></label></th>
    1717<td><input name="blogname" type="text" id="blogname" value="<?php form_option('blogname'); ?>" size="40" /></td>
    1818</tr>
    1919<tr valign="top">
    20 <th scope="row"><?php _e('Tagline') ?></th>
     20<th scope="row"><label for="blogdescription"><?php _e('Tagline') ?></label></th>
    2121<td><input name="blogdescription" type="text" id="blogdescription" style="width: 95%" value="<?php form_option('blogdescription'); ?>" size="45" />
    2222<br />
    2323<?php _e('In a few words, explain what this blog is about.') ?></td>
    2424</tr>
    2525<tr valign="top">
    26 <th scope="row"><?php _e('WordPress address (URL)') ?></th>
     26<th scope="row"><label for="siteurl"><?php _e('WordPress address (URL)') ?></label></th>
    2727<td><input name="siteurl" type="text" id="siteurl" value="<?php form_option('siteurl'); ?>" size="40" class="code<?php if ( defined( 'WP_SITEURL' ) ) : ?> disabled" disabled="disabled"<?php else: ?>"<?php endif; ?> /></td>
    2828</tr>
    2929<tr valign="top">
    30 <th scope="row"><?php _e('Blog address (URL)') ?></th>
     30<th scope="row"><label for="home"><?php _e('Blog address (URL)') ?></label></th>
    3131<td><input name="home" type="text" id="home" value="<?php form_option('home'); ?>" size="40" class="code<?php if ( defined( 'WP_HOME' ) ) : ?> disabled" disabled="disabled"<?php else: ?>"<?php endif; ?> /><br /><?php _e('Enter the address here if you want your blog homepage <a href="http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory">to be different from the directory</a> you installed WordPress.'); ?></td>
    3232</tr>
    3333<tr valign="top">
    34 <th scope="row"><?php _e('E-mail address') ?> </th>
     34<th scope="row"><label for="admin_email"><?php _e('E-mail address') ?> </label></th>
    3535<td><input name="admin_email" type="text" id="admin_email" value="<?php form_option('admin_email'); ?>" size="40" class="code" />
    3636<br />
    3737<?php _e('This address is used for admin purposes, like new user notification.') ?></td>
    3838</tr>
    3939<tr valign="top">
    4040<th scope="row"><?php _e('Membership') ?></th>
    41 <td> <label for="users_can_register">
     41<td> <fieldset><legend class="hidden"><?php _e('Membership') ?></legend><label for="users_can_register">
    4242<input name="users_can_register" type="checkbox" id="users_can_register" value="1" <?php checked('1', get_option('users_can_register')); ?> />
    4343<?php _e('Anyone can register') ?></label><br />
    4444<label for="comment_registration">
    4545<input name="comment_registration" type="checkbox" id="comment_registration" value="1" <?php checked('1', get_option('comment_registration')); ?> />
    4646<?php _e('Users must be registered and logged in to comment') ?>
    4747</label>
    48 </td>
     48</fieldset></td>
    4949</tr>
    5050<tr valign="top">
    51 <th scope="row"><?php _e('New User Default Role') ?></th>
    52 <td><label for="default_role">
    53 <select name="default_role" id="default_role"><?php wp_dropdown_roles( get_option('default_role') ); ?></select></label>
     51<th scope="row"><label for="default_role"><?php _e('New User Default Role') ?></label></th>
     52<td>
     53<select name="default_role" id="default_role"><?php wp_dropdown_roles( get_option('default_role') ); ?></select>
    5454</td>
    5555</tr>
    5656<tr>
    57 <th scope="row"><?php _e('Timezone') ?> </th>
     57<th scope="row"><label for="gmt_offset"><?php _e('Timezone') ?> </label></th>
    5858<td>
    59 <select name="gmt_offset">
     59<select name="gmt_offset" id="gmt_offset">
    6060<?php
    6161$current_offset = get_option('gmt_offset');
    6262$offset_range = array (-12, -11.5, -11, -10.5, -10, -9.5, -9, -8.5, -8, -7.5, -7, -6.5, -6, -5.5, -5, -4.5, -4, -3.5, -3, -2.5, -2, -1.5, -1, -0.5,
     
    8787</td>
    8888</tr>
    8989<tr>
    90 <th scope="row"><?php _e('Date Format') ?></th>
     90<th scope="row"><label for="date_format"><?php _e('Date Format') ?></label></th>
    9191<td><input name="date_format" type="text" id="date_format" size="30" value="<?php form_option('date_format'); ?>" /><br />
    9292<?php _e('Output:') ?> <strong><?php echo mysql2date(get_option('date_format'), current_time('mysql')); ?></strong></td>
    9393</tr>
    9494<tr>
    95 <th scope="row"><?php _e('Time Format') ?></th>
     95<th scope="row"><label for="time_format"><?php _e('Time Format') ?></label></th>
    9696<td><input name="time_format" type="text" id="time_format" size="30" value="<?php form_option('time_format'); ?>" /><br />
    9797<?php _e('Output:') ?> <strong><?php echo gmdate(get_option('time_format'), current_time('timestamp')); ?></strong><br />
    9898<?php _e('<a href="http://codex.wordpress.org/Formatting_Date_and_Time">Documentation on date formatting</a>. Click "Save Changes" to update sample output.') ?></td>
    9999</tr>
    100100<tr>
    101 <th scope="row"><?php _e('Week Starts On') ?></th>
     101<th scope="row"><label for="start_of_week"><?php _e('Week Starts On') ?></label></th>
    102102<td><select name="start_of_week" id="start_of_week">
    103103<?php
    104104for ($day_index = 0; $day_index <= 6; $day_index++) :
  • wp-admin/options-misc.php

     
    1515<h3><?php _e('Uploading'); ?></h3>
    1616<table class="form-table">
    1717<tr valign="top">
    18 <th scope="row"><?php _e('Store uploads in this folder'); ?></th>
     18<th scope="row"><label for="upload_path"><?php _e('Store uploads in this folder'); ?></label></th>
    1919<td><input name="upload_path" type="text" id="upload_path" class="code" value="<?php echo attribute_escape(str_replace(ABSPATH, '', get_option('upload_path'))); ?>" size="40" />
    2020<br />
    2121<?php _e('Default is <code>wp-content/uploads</code>'); ?>
     
    2323</tr>
    2424
    2525<tr valign="top">
    26 <th scope="row"><?php _e('Full URL path to files (optional)'); ?></th>
     26<th scope="row"><label for="upload_url_path"><?php _e('Full URL path to files (optional)'); ?></label></th>
    2727<td><input name="upload_url_path" type="text" id="upload_url_path" class="code" value="<?php echo attribute_escape( get_option('upload_url_path')); ?>" size="40" />
    2828</td>
    2929</tr>
     
    4444<table class="form-table">
    4545<tr valign="top">
    4646<th scope="row"><?php _e('Thumbnail size') ?></th>
    47 <td>
     47<td><fieldset><legend class="hidden"><?php _e('Thumbnail size') ?></legend>
    4848<label for="thumbnail_size_w"><?php _e('Width'); ?></label>
    4949<input name="thumbnail_size_w" type="text" id="thumbnail_size_w" value="<?php form_option('thumbnail_size_w'); ?>" size="6" />
    5050<label for="thumbnail_size_h"><?php _e('Height'); ?></label>
    5151<input name="thumbnail_size_h" type="text" id="thumbnail_size_h" value="<?php form_option('thumbnail_size_h'); ?>" size="6" /><br />
    5252<input name="thumbnail_crop" type="checkbox" id="thumbnail_crop" value="1" <?php checked('1', get_option('thumbnail_crop')); ?>/>
    5353<label for="thumbnail_crop"><?php _e('Crop thumbnail to exact dimensions (normally thumbnails are proportional)'); ?></label>
    54 </td>
     54</fieldset></td>
    5555</tr>
    5656<tr valign="top">
    5757<th scope="row"><?php _e('Medium size') ?></th>
    58 <td>
     58<td><fieldset><legend class="hidden"><?php _e('Medium size') ?></legend>
    5959<label for="medium_size_w"><?php _e('Max Width'); ?></label>
    6060<input name="medium_size_w" type="text" id="medium_size_w" value="<?php form_option('medium_size_w'); ?>" size="6" />
    6161<label for="medium_size_h"><?php _e('Max Height'); ?></label>
    6262<input name="medium_size_h" type="text" id="medium_size_h" value="<?php form_option('medium_size_h'); ?>" size="6" />
    63 </td>
     63</fieldset></td>
    6464</tr>
    6565</table>
    6666
  • wp-admin/options-permalink.php

     
    170170
    171171<table class="form-table">
    172172        <tr>
    173                 <th><?php _e('Category base'); ?></th>
     173                <th><label for="category_base"><?php _e('Category base'); ?></label></th>
    174174                <td><input name="category_base" id="category_base" type="text" class="code"  value="<?php echo attribute_escape($category_base); ?>" size="30" /></td>
    175175        </tr>
    176176        <tr>
    177                 <th><?php _e('Tag base'); ?></th>
     177                <th><label for="tag_base"><?php _e('Tag base'); ?></label></th>
    178178                <td><input name="tag_base" id="tag_base" type="text" class="code"  value="<?php echo attribute_escape($tag_base); ?>" size="30" /></td>
    179179        </tr>
    180180</table>
  • wp-admin/options-privacy.php

     
    1414<table class="form-table">
    1515<tr valign="top">
    1616<th scope="row"><?php _e('Blog Visibility') ?> </th>
    17 <td>
     17<td><fieldset><legend class="hidden"><?php _e('Blog Visibility') ?> </legend>
    1818<p><input id="blog-public" type="radio" name="blog_public" value="1" <?php checked('1', get_option('blog_public')); ?> />
    1919<label for="blog-public"><?php _e('I would like my blog to be visible to everyone, including search engines (like Google, Sphere, Technorati) and archivers');?></label></p>
    2020<p><input id="blog-norobots" type="radio" name="blog_public" value="0" <?php checked('0', get_option('blog_public')); ?> />
    2121<label for="blog-norobots"><?php _e('I would like to block search engines, but allow normal visitors'); ?></label></p>
    2222<?php do_action('blog_privacy_selector'); ?>
    23 </td>
     23</fieldset></td>
    2424</tr>
    2525</table>
    2626
  • wp-admin/options-reading.php

     
    1515<?php if ( get_pages() ): ?>
    1616<tr valign="top">
    1717<th scope="row"><?php _e('Front page displays')?></th>
    18 <td>
     18<td><fieldset><legend class="hidden"><?php _e('Front page displays')?></legend>
    1919        <p><label>
    2020                <input name="show_on_front" type="radio" value="posts" class="tog" <?php checked('posts', get_option('show_on_front')); ?> />
    2121                <?php _e('Your latest posts'); ?>
     
    3737        </p>
    3838</div>
    3939<?php endif; ?>
    40 </td>
     40</fieldset></td>
    4141</tr>
    4242<?php endif; ?>
    4343<tr valign="top">
    44 <th scope="row"><?php _e('Blog pages show at most') ?></th>
     44<th scope="row"><label for="posts_per_page"><?php _e('Blog pages show at most') ?></label></th>
    4545<td>
    4646<input name="posts_per_page" type="text" id="posts_per_page" value="<?php form_option('posts_per_page'); ?>" size="3" /> <?php _e('posts') ?>
    4747</td>
    4848</tr>
    4949<tr valign="top">
    50 <th scope="row"><?php _e('Syndication feeds show the most recent') ?></th>
     50<th scope="row"><label for="posts_per_rss"><?php _e('Syndication feeds show the most recent') ?></label></th>
    5151<td><input name="posts_per_rss" type="text" id="posts_per_rss" value="<?php form_option('posts_per_rss'); ?>" size="3" /> <?php _e('posts') ?></td>
    5252</tr>
    5353<tr valign="top">
    5454<th scope="row"><?php _e('For each article in a feed, show') ?> </th>
    55 <td>
     55<td><fieldset><legend class="hidden"><?php _e('For each article in a feed, show') ?> </legend>
    5656<p><label><input name="rss_use_excerpt"  type="radio" value="0" <?php checked(0, get_option('rss_use_excerpt')); ?>     /> <?php _e('Full text') ?></label><br />
    5757<label><input name="rss_use_excerpt" type="radio" value="1" <?php checked(1, get_option('rss_use_excerpt')); ?> /> <?php _e('Summary') ?></label></p>
    58 </td>
     58</fieldset></td>
    5959</tr>
    6060
    6161<tr valign="top">
    62 <th scope="row"><?php _e('Encoding for pages and feeds') ?></th>
     62<th scope="row"><label for="blog_charset"><?php _e('Encoding for pages and feeds') ?></label></th>
    6363<td><input name="blog_charset" type="text" id="blog_charset" value="<?php form_option('blog_charset'); ?>" size="20" class="code" /><br />
    6464<?php _e('The character encoding you write your blog in (UTF-8 is <a href="http://developer.apple.com/documentation/macos8/TextIntlSvcs/TextEncodingConversionManager/TEC1.5/TEC.b0.html">recommended</a>)') ?></td>
    6565</tr>
  • wp-admin/options-writing.php

     
    1414
    1515<table class="form-table">
    1616<tr valign="top">
    17 <th scope="row"> <?php _e('Size of the post box') ?></th>
     17<th scope="row"><label for="default_post_edit_rows"> <?php _e('Size of the post box') ?></label></th>
    1818<td><input name="default_post_edit_rows" type="text" id="default_post_edit_rows" value="<?php form_option('default_post_edit_rows'); ?>" size="2" style="width: 1.5em;" />
    1919<?php _e('lines') ?></td>
    2020</tr>
    2121<tr valign="top">
    2222<th scope="row"><?php _e('Formatting') ?></th>
    23 <td>
     23<td><fieldset><legend class="hidden"><?php _e('Formatting') ?></legend>
    2424<label for="use_smilies">
    2525<input name="use_smilies" type="checkbox" id="use_smilies" value="1" <?php checked('1', get_option('use_smilies')); ?> />
    2626<?php _e('Convert emoticons like <code>:-)</code> and <code>:-P</code> to graphics on display') ?></label><br />
    2727<label for="use_balanceTags"><input name="use_balanceTags" type="checkbox" id="use_balanceTags" value="1" <?php checked('1', get_option('use_balanceTags')); ?> /> <?php _e('WordPress should correct invalidly nested XHTML automatically') ?></label>
    28 </td>
     28</fieldset></td>
    2929</tr>
    3030<tr valign="top">
    31 <th scope="row"><?php _e('Default Post Category') ?></th>
     31<th scope="row"><label for="default_category"><?php _e('Default Post Category') ?></label></th>
    3232<td><select name="default_category" id="default_category">
    3333<?php
    3434$categories = get_categories('get=all');
     
    4242</select></td>
    4343</tr>
    4444<tr valign="top">
    45 <th scope="row"><?php _e('Default Link Category') ?></th>
     45<th scope="row"><label for="default_link_category"><?php _e('Default Link Category') ?></label></th>
    4646<td><select name="default_link_category" id="default_link_category">
    4747<?php
    4848$link_categories = get_terms('link_category', 'get=all');
     
    6262
    6363<table class="form-table">
    6464<tr valign="top">
    65 <th scope="row"><?php _e('Mail Server') ?></th>
     65<th scope="row"><label for="mailserver_url"><?php _e('Mail Server') ?></label></th>
    6666<td><input name="mailserver_url" type="text" id="mailserver_url" value="<?php form_option('mailserver_url'); ?>" size="40" />
    6767<label for="mailserver_port"><?php _e('Port') ?></label>
    6868<input name="mailserver_port" type="text" id="mailserver_port" value="<?php form_option('mailserver_port'); ?>" size="6" />
    6969</td>
    7070</tr>
    7171<tr valign="top">
    72 <th scope="row"><?php _e('Login Name') ?></th>
     72<th scope="row"><label for="mailserver_login"><?php _e('Login Name') ?></label></th>
    7373<td><input name="mailserver_login" type="text" id="mailserver_login" value="<?php form_option('mailserver_login'); ?>" size="40" /></td>
    7474</tr>
    7575<tr valign="top">
    76 <th scope="row"><?php _e('Password') ?></th>
     76<th scope="row"><label for="mailserver_pass"><?php _e('Password') ?></label></th>
    7777<td>
    7878<input name="mailserver_pass" type="text" id="mailserver_pass" value="<?php form_option('mailserver_pass'); ?>" size="40" />
    7979</td>
    8080</tr>
    8181<tr valign="top">
    82 <th scope="row"><?php _e('Default Mail Category') ?></th>
     82<th scope="row"><label for="default_email_category"><?php _e('Default Mail Category') ?></label></th>
    8383<td><select name="default_email_category" id="default_email_category">
    8484<?php
    8585//Alreay have $categories from default_category
     
    9898
    9999<?php if ( get_option('blog_public') ) : ?>
    100100
    101 <p><?php _e('When you publish a new post, WordPress automatically notifies the following site update services. For more about this, see <a href="http://codex.wordpress.org/Update_Services">Update Services</a> on the Codex. Separate multiple service <abbr title="Universal Resource Locator">URL</abbr>s with line breaks.') ?></p>
     101<p><label for="ping_sites"><?php _e('When you publish a new post, WordPress automatically notifies the following site update services. For more about this, see <a href="http://codex.wordpress.org/Update_Services">Update Services</a> on the Codex. Separate multiple service <abbr title="Universal Resource Locator">URL</abbr>s with line breaks.') ?></label></p>
    102102
    103103<textarea name="ping_sites" id="ping_sites" style="width: 98%;" rows="3" cols="50"><?php form_option('ping_sites'); ?></textarea>
    104104
  • wp-admin/options.php

     
    7373        }
    7474        echo "
    7575<tr>
    76         <th scope='row'>$option->option_name</th>
     76        <th scope='row'><label for='$option->option_name'>$option->option_name</label></th>
    7777<td>";
    7878
    7979        if (strpos($value, "\n") !== false) echo "<textarea class='$class' name='$option->option_name' id='$option->option_name' cols='30' rows='5'>" . wp_specialchars($value) . "</textarea>";
  • wp-admin/setup-config.php

     
    6868        <p>Below you should enter your database connection details. If you're not sure about these, contact your host. </p>
    6969        <table class="form-table">
    7070                <tr>
    71                         <th scope="row">Database Name</th>
    72                         <td><input name="dbname" type="text" size="25" value="wordpress" /></td>
     71                        <th scope="row"><label for="dbname">Database Name</label></th>
     72                        <td><input name="dbname" id="dbname" type="text" size="25" value="wordpress" /></td>
    7373                        <td>The name of the database you want to run WP in. </td>
    7474                </tr>
    7575                <tr>
    76                         <th scope="row">User Name</th>
    77                         <td><input name="uname" type="text" size="25" value="username" /></td>
     76                        <th scope="row"><label for="uname">User Name</label></th>
     77                        <td><input name="uname" id="uname" type="text" size="25" value="username" /></td>
    7878                        <td>Your MySQL username</td>
    7979                </tr>
    8080                <tr>
    81                         <th scope="row">Password</th>
    82                         <td><input name="pwd" type="text" size="25" value="password" /></td>
     81                        <th scope="row"><label for="pwd">Password</label></th>
     82                        <td><input name="pwd" id="pwd" type="text" size="25" value="password" /></td>
    8383                        <td>...and MySQL password.</td>
    8484                </tr>
    8585                <tr>
    86                         <th scope="row">Database Host</th>
    87                         <td><input name="dbhost" type="text" size="25" value="localhost" /></td>
     86                        <th scope="row"><label for="dbhost">Database Host</label></th>
     87                        <td><input name="dbhost" id="dbhost" type="text" size="25" value="localhost" /></td>
    8888                        <td>99% chance you won't need to change this value.</td>
    8989                </tr>
    9090                <tr>
    91                         <th scope="row">Table Prefix</th>
    92                         <td><input name="prefix" type="text" id="prefix" value="wp_" size="25" /></td>
     91                        <th scope="row"><label for="prefix">Table Prefix</label></th>
     92                        <td><input name="prefix" id="prefix" type="text" id="prefix" value="wp_" size="25" /></td>
    9393                        <td>If you want to run multiple WordPress installations in a single database, change this.</td>
    9494                </tr>
    9595        </table>
  • wp-admin/sidebar.php

     
    6060<input type="hidden" name="user_ID" value="<?php echo $user_ID ?>" />
    6161<input type="hidden" name="mode" value="sidebar" />
    6262<?php wp_nonce_field('add-post'); ?>
    63 <p><?php _e('Title:'); ?>
    64 <input type="text" name="post_title" size="20" tabindex="1" style="width: 100%;" />
     63<p><label for="post_title"><?php _e('Title:'); ?></label>
     64<input type="text" name="post_title" id="post_title" size="20" tabindex="1" style="width: 100%;" />
    6565</p>
    6666<p><?php _e('Categories:'); ?>
    6767<span class="sidebar-categories">
     
    6969</span>
    7070</p>
    7171<p>
    72 Post:
    73 <textarea rows="8" cols="12" style="width: 100%" name="content" tabindex="2"></textarea>
     72<label for="content">Post:</label>
     73<textarea rows="8" cols="12" style="width: 100%" name="content" id="content" tabindex="2"></textarea>
    7474</p>
    7575<p>
    7676        <input name="saveasdraft" type="submit" id="saveasdraft" tabindex="9" value="<?php _e('Save as Draft'); ?>" />
  • wp-admin/theme-editor.php

     
    9292<div class="bordertitle">
    9393        <h2><?php _e('Theme Editor'); ?></h2>
    9494        <form id="themeselector" name="theme" action="theme-editor.php" method="post">
    95                 <strong><?php _e('Select theme to edit:'); ?> </strong>
     95                <strong><label for="theme"><?php _e('Select theme to edit:'); ?> </label></strong>
    9696                <select name="theme" id="theme">
    9797<?php
    9898        foreach ($themes as $a_theme) {
  • wp-admin/update.php

     
    4545<p><?php _e('To perform the requested update, FTP connection information is required.') ?></p>
    4646<table class="form-table">
    4747<tr valign="top">
    48 <th scope="row"><?php _e('Hostname:') ?></th>
     48<th scope="row"><label for="hostname"><?php _e('Hostname:') ?></label></th>
    4949<td><input name="hostname" type="text" id="hostname" value="<?php echo attribute_escape($hostname) ?>"<?php if( defined('FTP_HOST') ) echo ' disabled="disabled"' ?> size="40" /></td>
    5050</tr>
    5151<tr valign="top">
    52 <th scope="row"><?php _e('Username:') ?></th>
     52<th scope="row"><label for="username"><?php _e('Username:') ?></label></th>
    5353<td><input name="username" type="text" id="username" value="<?php echo attribute_escape($username) ?>"<?php if( defined('FTP_USER') ) echo ' disabled="disabled"' ?> size="40" /></td>
    5454</tr>
    5555<tr valign="top">
    56 <th scope="row"><?php _e('Password:') ?></th>
     56<th scope="row"><label for="password"><?php _e('Password:') ?></label></th>
    5757<td><input name="password" type="password" id="password" value=""<?php if( defined('FTP_PASS') ) echo ' disabled="disabled"' ?> size="40" /><?php if( defined('FTP_PASS') && !empty($password) ) echo '<em>'.__('(Password not shown)').'</em>'; ?></td>
    5858</tr>
    5959<tr valign="top">
    60 <th scope="row"><?php _e('Use SSL:') ?></th>
     60<th scope="row"><label for="ssl"><?php _e('Use SSL:') ?></label></th>
    6161<td>
    6262<select name="ssl" id="ssl"<?php if( defined('FTP_SSL') ) echo ' disabled="disabled"' ?>>
    6363<?php
  • wp-admin/upload.php

     
    125125?>
    126126
    127127<p id="post-search">
     128        <label class="hidden" for="post-search-input"><?php _e( 'Search Media' ); ?>:</label>
    128129        <input type="text" id="post-search-input" name="s" value="<?php the_search_query(); ?>" />
    129130        <input type="submit" value="<?php _e( 'Search Media' ); ?>" class="button" />
    130131</p>
  • wp-admin/user-edit.php

     
    162162<?php endif; ?>
    163163<tr>
    164164<th scope="row"><?php _e('Admin Color Scheme')?></th>
    165 <td>
     165<td><fieldset><legend class="hidden"><?php _e('Admin Color Scheme')?></legend>
    166166<?php
    167167$current_color = get_user_option('admin_color');
    168168if ( empty($current_color) )
     
    181181        <label for="admin_color_<?php echo $color; ?>"><?php echo $color_info->name ?></label>
    182182</div>
    183183<?php endforeach; ?>
    184 </td>
     184</fieldset></td>
    185185</tr>
    186186</table>
    187187
  • wp-admin/users.php

     
    145145        ?>
    146146        </ul>
    147147<?php if ( $go_delete ) : ?>
    148         <p><?php _e('What should be done with posts and links owned by this user?'); ?></p>
     148        <fieldset><p><legend><?php _e('What should be done with posts and links owned by this user?'); ?></legend></p>
    149149        <ul style="list-style:none;">
    150150                <li><label><input type="radio" id="delete_option0" name="delete_option" value="delete" checked="checked" />
    151151                <?php _e('Delete all posts and links.'); ?></label></li>
    152152                <li><input type="radio" id="delete_option1" name="delete_option" value="reassign" />
    153153                <?php echo '<label for="delete_option1">'.__('Attribute all posts and links to:')."</label> $user_dropdown"; ?></li>
    154         </ul>
     154        </ul></fieldset>
    155155        <input type="hidden" name="action" value="dodelete" />
    156156        <p class="submit"><input type="submit" name="submit" value="<?php _e('Confirm Deletion'); ?>" class="button-secondary" /></p>
    157157<?php else : ?>
     
    287287?>
    288288</ul>
    289289        <p id="post-search">
     290        <label class="hidden" for="post-search-input"><?php _e( 'Search Users' ); ?>:</label>
    290291        <input type="text" id="post-search-input" name="usersearch" value="<?php echo attribute_escape($wp_user_search->search_term); ?>" />
    291292        <input type="submit" value="<?php _e( 'Search Users' ); ?>" class="button" />
    292293        </p>
     
    403404<?php wp_nonce_field('add-user') ?>
    404405<table class="form-table">
    405406        <tr class="form-field form-required">
    406                 <th scope="row"><?php _e('Username (required)') ?><input name="action" type="hidden" id="action" value="adduser" /></th>
     407                <th scope="row"><label for="user_login"><?php _e('Username (required)') ?></label><input name="action" type="hidden" id="action" value="adduser" /></th>
    407408                <td ><input name="user_login" type="text" id="user_login" value="<?php echo $new_user_login; ?>" /></td>
    408409        </tr>
    409410        <tr class="form-field">
    410                 <th scope="row"><?php _e('First Name') ?> </th>
     411                <th scope="row"><label for="first_name"><?php _e('First Name') ?> </label></th>
    411412                <td><input name="first_name" type="text" id="first_name" value="<?php echo $new_user_firstname; ?>" /></td>
    412413        </tr>
    413414        <tr class="form-field">
    414                 <th scope="row"><?php _e('Last Name') ?> </th>
     415                <th scope="row"><label for="last_name"><?php _e('Last Name') ?> </label></th>
    415416                <td><input name="last_name" type="text" id="last_name" value="<?php echo $new_user_lastname; ?>" /></td>
    416417        </tr>
    417418        <tr class="form-field form-required">
    418                 <th scope="row"><?php _e('E-mail (required)') ?></th>
     419                <th scope="row"><label for="email"><?php _e('E-mail (required)') ?></label></th>
    419420                <td><input name="email" type="text" id="email" value="<?php echo $new_user_email; ?>" /></td>
    420421        </tr>
    421422        <tr class="form-field">
    422                 <th scope="row"><?php _e('Website') ?></th>
     423                <th scope="row"><label for="url"><?php _e('Website') ?></label></th>
    423424                <td><input name="url" type="text" id="url" value="<?php echo $new_user_uri; ?>" /></td>
    424425        </tr>
    425426
    426427<?php if ( apply_filters('show_password_fields', true) ) : ?>
    427428        <tr class="form-field form-required">
    428                 <th scope="row"><?php _e('Password (twice)') ?> </th>
     429                <th scope="row"><label for="pass1"><?php _e('Password (twice)') ?> </label></th>
    429430                <td><input name="pass1" type="password" id="pass1" />
    430431                <br />
    431432                <input name="pass2" type="password" id="pass2" /></td>
     
    433434<?php endif; ?>
    434435
    435436        <tr class="form-field">
    436                 <th scope="row"><?php _e('Role'); ?></th>
     437                <th scope="row"><label for="role"><?php _e('Role'); ?></label></th>
    437438                <td><select name="role" id="role">
    438439                        <?php
    439440                        if ( !$new_user_role )
  • wp-admin/widgets.php

     
    232232
    233233        <h2><?php _e( 'Widgets' ); ?></h2>
    234234        <p id="widget-search">
     235                <label class="hidden" for="widget-search-input"><?php _e( 'Search Widgets' ); ?>:</label>
    235236                <input type="text" id="widget-search-input" name="s" value="<?php echo attribute_escape( $widget_search ); ?>" />
    236237                <input type="submit" class="button" value="<?php _e( 'Search Widgets' ); ?>" />
    237238        </p>
    238239
    239240        <div class="widget-liquid-left-holder">
    240241        <div id="available-widgets-filter" class="widget-liquid-left">
    241                 <h3><?php _e('Available Widgets'); ?></h3>
     242                <h3><label for="show"><?php _e('Available Widgets'); ?></label></h3>
    242243                <div class="nav">
    243                         <select name="show">
     244                        <select name="show" id="show">
    244245<?php foreach ( $show_values as $show_value => $show_text ) : $show_value = attribute_escape( $show_value ); ?>
    245246                                <option value='<?php echo $show_value; ?>'<?php selected( $show_value, $show ); ?>><?php echo wp_specialchars( $show_text ); ?></option>
    246247<?php endforeach; ?>
     
    254255        </div>
    255256
    256257        <div id="available-sidebars" class="widget-liquid-right">
    257                 <h3><?php _e('Current Widgets'); ?></h3>
     258                <h3><label for="sidebar-selector"><?php _e('Current Widgets'); ?></label></h3>
    258259
    259260                <div class="nav">
    260261                        <select id="sidebar-selector" name="sidebar">
  • wp-admin/wp-admin.css

     
    15031503table.diff .diff-deletedline del, table.diff .diff-addedline ins {
    15041504        text-decoration: none;
    15051505}
     1506
     1507fieldset {
     1508        border: 0;
     1509        height: 0;
     1510        padding: 0;
     1511        margin: 0;
     1512}
  • wp-content/themes/default/searchform.php

     
    11<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
     2<label class="hidden" for="s"><?php _e('Search for:'); ?></label>
    23<div><input type="text" value="<?php the_search_query(); ?>" name="s" id="s" />
    34<input type="submit" id="searchsubmit" value="Search" />
    45</div>
  • wp-content/themes/default/style.css

     
    616616        text-align: center;
    617617        }
    618618
     619.hidden {
     620        display: none;
     621        }
     622
    619623hr {
    620624        display: none;
    621625        }
  • wp-includes/widgets.php

     
    461461                <?php echo $before_widget; ?>
    462462                        <form id="searchform" method="get" action="<?php bloginfo('home'); ?>">
    463463                        <div>
     464                        <label class="hidden" for="s"><?php _e('Search for:'); ?></label>
    464465                        <input type="text" name="s" id="s" size="15" /><br />
    465466                        <input type="submit" value="<?php echo attribute_escape(__('Search')); ?>" />
    466467                        </div>