WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/04/2008 10:37:06 AM (13 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-reading.php

    r7498 r7883  
    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')); ?> />
     
    2828    </p>
    2929<ul>
    30     <li><?php printf(__('Front page: %s'), wp_dropdown_pages("name=page_on_front&echo=0&show_option_none=".__('- Select -')."&selected=" . get_option('page_on_front'))); ?></li>
    31     <li><?php printf(__('Posts page: %s'), wp_dropdown_pages("name=page_for_posts&echo=0&show_option_none=".__('- Select -')."&selected=" . get_option('page_for_posts'))); ?></li>
     30    <li><?php printf("<label for='page_on_front'>".__('Front page: %s')."</label>", wp_dropdown_pages("name=page_on_front&echo=0&show_option_none=".__('- Select -')."&selected=" . get_option('page_on_front'))); ?></li>
     31    <li><?php printf("<label for='page_for_posts'>".__('Posts page: %s')."</label>", wp_dropdown_pages("name=page_for_posts&echo=0&show_option_none=".__('- Select -')."&selected=" . get_option('page_for_posts'))); ?></li>
    3232</ul>
    3333<?php if ( 'page' == get_option('show_on_front') && get_option('page_for_posts') == get_option('page_on_front') ) : ?>
     
    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') ?>
     
    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>
Note: See TracChangeset for help on using the changeset viewer.