WordPress.org

Make WordPress Core

Ticket #16413: 16143-options.diff

File 16143-options.diff, 47.5 KB (added by andrewryno, 6 years ago)
  • wp-admin/options-privacy.php

     
    3838<form method="post" action="options.php">
    3939<?php settings_fields('privacy'); ?>
    4040
    41 <table class="form-table">
    42 <tr valign="top">
    43 <th scope="row"><?php _e( 'Site Visibility' ); ?> </th>
    44 <td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Site Visibility' ); ?> </span></legend>
     41<div class="form-fields">
     42<div class="field-row">
     43<div class="field-label"><?php _e( 'Site Visibility' ); ?> </div>
     44<div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e( 'Site Visibility' ); ?> </span></legend>
    4545<input id="blog-public" type="radio" name="blog_public" value="1" <?php checked('1', get_option('blog_public')); ?> />
    4646<label for="blog-public"><?php _e( 'Allow search engines to index this site.' );?></label><br/>
    4747<input id="blog-norobots" type="radio" name="blog_public" value="0" <?php checked('0', get_option('blog_public')); ?> />
    4848<label for="blog-norobots"><?php _e( 'Ask search engines not to index this site.' ); ?></label>
    4949<p class="description"><?php _e( 'Note: Neither of these options blocks access to your site &mdash; it is up to search engines to honor your request.' ); ?></p>
    5050<?php do_action('blog_privacy_selector'); ?>
    51 </fieldset></td>
    52 </tr>
     51</fieldset></div>
     52</div>
    5353<?php do_settings_fields('privacy', 'default'); ?>
    54 </table>
     54</div>
    5555
    5656<?php do_settings_sections('privacy'); ?>
    5757
  • wp-admin/options-general.php

     
    9191<form method="post" action="options.php">
    9292<?php settings_fields('general'); ?>
    9393
    94 <table class="form-table">
    95 <tr valign="top">
    96 <th scope="row"><label for="blogname"><?php _e('Site Title') ?></label></th>
    97 <td><input name="blogname" type="text" id="blogname" value="<?php form_option('blogname'); ?>" class="regular-text" /></td>
    98 </tr>
    99 <tr valign="top">
    100 <th scope="row"><label for="blogdescription"><?php _e('Tagline') ?></label></th>
    101 <td><input name="blogdescription" type="text" id="blogdescription" value="<?php form_option('blogdescription'); ?>" class="regular-text" />
    102 <span class="description"><?php _e('In a few words, explain what this site is about.') ?></span></td>
    103 </tr>
     94<div class="form-fields">
     95<div class="field-row">
     96<div class="field-label"><label for="blogname"><?php _e('Site Title') ?></label></div>
     97<div class="field-input"><input name="blogname" type="text" id="blogname" value="<?php form_option('blogname'); ?>" class="regular-text" /></div>
     98</div>
     99<div class="field-row">
     100<div class="field-label"><label for="blogdescription"><?php _e('Tagline') ?></label></div>
     101<div class="field-input"><input name="blogdescription" type="text" id="blogdescription" value="<?php form_option('blogdescription'); ?>" class="regular-text" />
     102<span class="description"><?php _e('In a few words, explain what this site is about.') ?></span></div>
     103</div>
    104104<?php if ( !is_multisite() ) { ?>
    105 <tr valign="top">
    106 <th scope="row"><label for="siteurl"><?php _e('WordPress Address (URL)') ?></label></th>
    107 <td><input name="siteurl" type="text" id="siteurl" value="<?php form_option('siteurl'); ?>"<?php disabled( defined( 'WP_SITEURL' ) ); ?> class="regular-text code<?php if ( defined( 'WP_SITEURL' ) ) echo ' disabled' ?>" /></td>
    108 </tr>
    109 <tr valign="top">
    110 <th scope="row"><label for="home"><?php _e('Site Address (URL)') ?></label></th>
    111 <td><input name="home" type="text" id="home" value="<?php form_option('home'); ?>"<?php disabled( defined( 'WP_HOME' ) ); ?> class="regular-text code<?php if ( defined( 'WP_HOME' ) ) echo ' disabled' ?>" />
    112 <span class="description"><?php _e('Enter the address here if you want your site homepage <a href="http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory">to be different from the directory</a> you installed WordPress.'); ?></span></td>
    113 </tr>
    114 <tr valign="top">
    115 <th scope="row"><label for="admin_email"><?php _e('E-mail Address') ?> </label></th>
    116 <td><input name="admin_email" type="text" id="admin_email" value="<?php form_option('admin_email'); ?>" class="regular-text" />
    117 <span class="description"><?php _e('This address is used for admin purposes, like new user notification.') ?></span></td>
    118 </tr>
    119 <tr valign="top">
    120 <th scope="row"><?php _e('Membership') ?></th>
    121 <td> <fieldset><legend class="screen-reader-text"><span><?php _e('Membership') ?></span></legend><label for="users_can_register">
     105<div class="field-row">
     106<div class="field-label"><label for="siteurl"><?php _e('WordPress Address (URL)') ?></label></div>
     107<div class="field-input"><input name="siteurl" type="text" id="siteurl" value="<?php form_option('siteurl'); ?>"<?php disabled( defined( 'WP_SITEURL' ) ); ?> class="regular-text code<?php if ( defined( 'WP_SITEURL' ) ) echo ' disabled' ?>" /></div>
     108</div>
     109<div class="field-row">
     110<div class="field-label"><label for="home"><?php _e('Site Address (URL)') ?></label></div>
     111<div class="field-input"><input name="home" type="text" id="home" value="<?php form_option('home'); ?>"<?php disabled( defined( 'WP_HOME' ) ); ?> class="regular-text code<?php if ( defined( 'WP_HOME' ) ) echo ' disabled' ?>" />
     112<span class="description"><?php _e('Enter the address here if you want your site homepage <a href="http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory">to be different from the directory</a> you installed WordPress.'); ?></span></div>
     113</div>
     114<div class="field-row">
     115<div class="field-label"><label for="admin_email"><?php _e('E-mail Address') ?> </label></div>
     116<div class="field-input"><input name="admin_email" type="text" id="admin_email" value="<?php form_option('admin_email'); ?>" class="regular-text" />
     117<span class="description"><?php _e('This address is used for admin purposes, like new user notification.') ?></span></div>
     118</div>
     119<div class="field-row">
     120<div class="field-label"><?php _e('Membership') ?></div>
     121<div class="field-input"> <fieldset><legend class="screen-reader-text"><span><?php _e('Membership') ?></span></legend><label for="users_can_register">
    122122<input name="users_can_register" type="checkbox" id="users_can_register" value="1" <?php checked('1', get_option('users_can_register')); ?> />
    123123<?php _e('Anyone can register') ?></label>
    124 </fieldset></td>
    125 </tr>
    126 <tr valign="top">
    127 <th scope="row"><label for="default_role"><?php _e('New User Default Role') ?></label></th>
    128 <td>
     124</fieldset></div>
     125</div>
     126<div class="field-row">
     127<div class="field-label"><label for="default_role"><?php _e('New User Default Role') ?></label></div>
     128<div class="field-input">
    129129<select name="default_role" id="default_role"><?php wp_dropdown_roles( get_option('default_role') ); ?></select>
    130 </td>
    131 </tr>
     130</div>
     131</div>
    132132<?php } else { ?>
    133 <tr valign="top">
    134 <th scope="row"><label for="new_admin_email"><?php _e('E-mail Address') ?> </label></th>
    135 <td><input name="new_admin_email" type="text" id="new_admin_email" value="<?php form_option('admin_email'); ?>" class="regular-text code" />
     133<div class="field-row">
     134<div class="field-label"><label for="new_admin_email"><?php _e('E-mail Address') ?> </label></div>
     135<div class="field-input"><input name="new_admin_email" type="text" id="new_admin_email" value="<?php form_option('admin_email'); ?>" class="regular-text code" />
    136136<span class="description"><?php _e('This address is used for admin purposes. If you change this we will send you an e-mail at your new address to confirm it. <strong>The new address will not become active until confirmed.</strong>') ?></span>
    137137<?php
    138138$new_admin_email = get_option( 'new_admin_email' );
     
    141141<p><?php printf( __('There is a pending change of the admin e-mail to <code>%1$s</code>. <a href="%2$s">Cancel</a>'), esc_html( $new_admin_email ), esc_url( admin_url( 'options.php?dismiss=new_admin_email' ) ) ); ?></p>
    142142</div>
    143143<?php endif; ?>
    144 </td>
    145 </tr>
     144</div>
     145</div>
    146146<?php } ?>
    147 <tr>
     147<div class="field-row">
    148148<?php
    149149$current_offset = get_option('gmt_offset');
    150150$tzstring = get_option('timezone_string');
     
    166166}
    167167
    168168?>
    169 <th scope="row"><label for="timezone_string"><?php _e('Timezone') ?></label></th>
    170 <td>
     169<div class="field-label"><label for="timezone_string"><?php _e('Timezone') ?></label></div>
     170<div class="field-input">
    171171
    172172<select id="timezone_string" name="timezone_string">
    173173<?php echo wp_timezone_choice($tzstring); ?>
     
    223223        ?>
    224224        </span>
    225225<?php endif; ?>
    226 </td>
     226</div>
    227227
    228 </tr>
    229 <tr>
    230 <th scope="row"><?php _e('Date Format') ?></th>
    231 <td>
     228</div>
     229<div class="field-row">
     230<div class="field-label"><?php _e('Date Format') ?></div>
     231<div class="field-input">
    232232        <fieldset><legend class="screen-reader-text"><span><?php _e('Date Format') ?></span></legend>
    233233<?php
    234234
     
    257257        echo "\t<p>" . __('<a href="http://codex.wordpress.org/Formatting_Date_and_Time">Documentation on date and time formatting</a>.') . "</p>\n";
    258258?>
    259259        </fieldset>
    260 </td>
    261 </tr>
    262 <tr>
    263 <th scope="row"><?php _e('Time Format') ?></th>
    264 <td>
     260</div>
     261</div>
     262<div class="field-row">
     263<div class="field-label"><?php _e('Time Format') ?></div>
     264<div class="field-input">
    265265        <fieldset><legend class="screen-reader-text"><span><?php _e('Time Format') ?></span></legend>
    266266<?php
    267267
     
    288288        ;
    289289?>
    290290        </fieldset>
    291 </td>
    292 </tr>
    293 <tr>
    294 <th scope="row"><label for="start_of_week"><?php _e('Week Starts On') ?></label></th>
    295 <td><select name="start_of_week" id="start_of_week">
     291</div>
     292</div>
     293<div class="field-row">
     294<div class="field-label"><label for="start_of_week"><?php _e('Week Starts On') ?></label></div>
     295<div class="field-input"><select name="start_of_week" id="start_of_week">
    296296<?php
    297297for ($day_index = 0; $day_index <= 6; $day_index++) :
    298298        $selected = (get_option('start_of_week') == $day_index) ? 'selected="selected"' : '';
    299299        echo "\n\t<option value='" . esc_attr($day_index) . "' $selected>" . $wp_locale->get_weekday($day_index) . '</option>';
    300300endfor;
    301301?>
    302 </select></td>
    303 </tr>
     302</select></div>
     303</div>
    304304<?php do_settings_fields('general', 'default'); ?>
    305305<?php
    306306        $languages = get_available_languages();
    307307        if ( is_multisite() && !empty( $languages ) ):
    308308?>
    309         <tr valign="top">
    310                 <th width="33%" scope="row"><?php _e('Site Language') ?></th>
    311                 <td>
     309        <div class="field-row">
     310                <div class="field-label"><?php _e('Site Language') ?></div>
     311                <div class="field-input">
    312312                        <select name="WPLANG" id="WPLANG">
    313313                                <?php mu_dropdown_languages( $languages, get_option('WPLANG') ); ?>
    314314                        </select>
    315                 </td>
    316         </tr>
     315                </div>
     316        </div>
    317317<?php
    318318        endif;
    319319?>
    320 </table>
     320</div>
    321321
    322322<?php do_settings_sections('general'); ?>
    323323
  • wp-admin/options-media.php

     
    5555<h3><?php _e('Image sizes') ?></h3>
    5656<p><?php _e('The sizes listed below determine the maximum dimensions in pixels to use when inserting an image into the body of a post.'); ?></p>
    5757
    58 <table class="form-table">
    59 <tr valign="top">
    60 <th scope="row"><?php _e('Thumbnail size') ?></th>
    61 <td>
     58<div class="form-fields">
     59<div class="field-row">
     60<div class="field-label"><?php _e('Thumbnail size') ?></div>
     61<div class="field-input">
    6262<label for="thumbnail_size_w"><?php _e('Width'); ?></label>
    6363<input name="thumbnail_size_w" type="text" id="thumbnail_size_w" value="<?php form_option('thumbnail_size_w'); ?>" class="small-text" />
    6464<label for="thumbnail_size_h"><?php _e('Height'); ?></label>
    6565<input name="thumbnail_size_h" type="text" id="thumbnail_size_h" value="<?php form_option('thumbnail_size_h'); ?>" class="small-text" /><br />
    6666<input name="thumbnail_crop" type="checkbox" id="thumbnail_crop" value="1" <?php checked('1', get_option('thumbnail_crop')); ?>/>
    6767<label for="thumbnail_crop"><?php _e('Crop thumbnail to exact dimensions (normally thumbnails are proportional)'); ?></label>
    68 </td>
    69 </tr>
     68</div>
     69</div>
    7070
    71 <tr valign="top">
    72 <th scope="row"><?php _e('Medium size') ?></th>
    73 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Medium size'); ?></span></legend>
     71<div class="field-row">
     72<div class="field-label"><?php _e('Medium size') ?></div>
     73<div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e('Medium size'); ?></span></legend>
    7474<label for="medium_size_w"><?php _e('Max Width'); ?></label>
    7575<input name="medium_size_w" type="text" id="medium_size_w" value="<?php form_option('medium_size_w'); ?>" class="small-text" />
    7676<label for="medium_size_h"><?php _e('Max Height'); ?></label>
    7777<input name="medium_size_h" type="text" id="medium_size_h" value="<?php form_option('medium_size_h'); ?>" class="small-text" />
    78 </fieldset></td>
    79 </tr>
     78</fieldset></div>
     79</div>
    8080
    81 <tr valign="top">
    82 <th scope="row"><?php _e('Large size') ?></th>
    83 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Large size'); ?></span></legend>
     81<div class="field-row">
     82<div class="field-label"><?php _e('Large size') ?></div>
     83<div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e('Large size'); ?></span></legend>
    8484<label for="large_size_w"><?php _e('Max Width'); ?></label>
    8585<input name="large_size_w" type="text" id="large_size_w" value="<?php form_option('large_size_w'); ?>" class="small-text" />
    8686<label for="large_size_h"><?php _e('Max Height'); ?></label>
    8787<input name="large_size_h" type="text" id="large_size_h" value="<?php form_option('large_size_h'); ?>" class="small-text" />
    88 </fieldset></td>
    89 </tr>
     88</fieldset></div>
     89</div>
    9090
    9191<?php do_settings_fields('media', 'default'); ?>
    92 </table>
     92</div>
    9393
    9494<h3><?php _e('Embeds') ?></h3>
    9595
    96 <table class="form-table">
     96<div class="form-fields">
    9797
    98 <tr valign="top">
    99 <th scope="row"><?php _e('Auto-embeds'); ?></th>
    100 <td><fieldset><legend class="screen-reader-text"><span><?php _e('When possible, embed the media content from a URL directly onto the page. For example: links to Flickr and YouTube.'); ?></span></legend>
     98<div class="field-row">
     99<div class="field-label"><?php _e('Auto-embeds'); ?></div>
     100<div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e('When possible, embed the media content from a URL directly onto the page. For example: links to Flickr and YouTube.'); ?></span></legend>
    101101<label for="embed_autourls"><input name="embed_autourls" type="checkbox" id="embed_autourls" value="1" <?php checked( '1', get_option('embed_autourls') ); ?>/> <?php _e('When possible, embed the media content from a URL directly onto the page. For example: links to Flickr and YouTube.'); ?></label>
    102 </fieldset></td>
    103 </tr>
     102</fieldset></div>
     103</div>
    104104
    105 <tr valign="top">
    106 <th scope="row"><?php _e('Maximum embed size') ?></th>
    107 <td>
     105<div class="field-row">
     106<div class="field-label"><?php _e('Maximum embed size') ?></div>
     107<div class="field-input">
    108108<label for="embed_size_w"><?php _e('Width'); ?></label>
    109109<input name="embed_size_w" type="text" id="embed_size_w" value="<?php form_option('embed_size_w'); ?>" class="small-text" />
    110110<label for="embed_size_h"><?php _e('Height'); ?></label>
    111111<input name="embed_size_h" type="text" id="embed_size_h" value="<?php form_option('embed_size_h'); ?>" class="small-text" />
    112112<?php if ( !empty($content_width) ) echo '<br />' . __("If the width value is left blank, embeds will default to the max width of your theme."); ?>
    113 </td>
    114 </tr>
     113</div>
     114</div>
    115115
    116116<?php do_settings_fields('media', 'embeds'); ?>
    117 </table>
     117</div>
    118118
    119119<?php if ( !is_multisite() ) : ?>
    120120<h3><?php _e('Uploading Files'); ?></h3>
    121 <table class="form-table">
    122 <tr valign="top">
    123 <th scope="row"><label for="upload_path"><?php _e('Store uploads in this folder'); ?></label></th>
    124 <td><input name="upload_path" type="text" id="upload_path" value="<?php echo esc_attr(get_option('upload_path')); ?>" class="regular-text code" />
     121<div class="form-fields">
     122<div class="field-row">
     123<div class="field-label"><label for="upload_path"><?php _e('Store uploads in this folder'); ?></label></div>
     124<div class="field-input"><input name="upload_path" type="text" id="upload_path" value="<?php echo esc_attr(get_option('upload_path')); ?>" class="regular-text code" />
    125125<span class="description"><?php _e('Default is <code>wp-content/uploads</code>'); ?></span>
    126 </td>
    127 </tr>
     126</div>
     127</div>
    128128
    129 <tr valign="top">
    130 <th scope="row"><label for="upload_url_path"><?php _e('Full URL path to files'); ?></label></th>
    131 <td><input name="upload_url_path" type="text" id="upload_url_path" value="<?php echo esc_attr( get_option('upload_url_path')); ?>" class="regular-text code" />
     129<div class="field-row">
     130<div class="field-label"><label for="upload_url_path"><?php _e('Full URL path to files'); ?></label></div>
     131<div class="field-input"><input name="upload_url_path" type="text" id="upload_url_path" value="<?php echo esc_attr( get_option('upload_url_path')); ?>" class="regular-text code" />
    132132<span class="description"><?php _e('Configuring this is optional. By default, it should be blank.'); ?></span>
    133 </td>
    134 </tr>
     133</div>
     134</div>
    135135
    136 <tr>
    137 <th scope="row" colspan="2" class="th-full">
     136<div class="field-row">
     137<div class="field-label label-full">
    138138<label for="uploads_use_yearmonth_folders">
    139139<input name="uploads_use_yearmonth_folders" type="checkbox" id="uploads_use_yearmonth_folders" value="1"<?php checked('1', get_option('uploads_use_yearmonth_folders')); ?> />
    140140<?php _e('Organize my uploads into month- and year-based folders'); ?>
    141141</label>
    142 </th>
    143 </tr>
     142</div>
     143</div>
    144144
    145145<?php do_settings_fields('media', 'uploads'); ?>
    146 </table>
     146</div>
    147147<?php endif; ?>
    148148
    149149<?php do_settings_sections('media'); ?>
  • wp-admin/options-discussion.php

     
    3838<form method="post" action="options.php">
    3939<?php settings_fields('discussion'); ?>
    4040
    41 <table class="form-table">
    42 <tr valign="top">
    43 <th scope="row"><?php _e('Default article settings'); ?></th>
    44 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Default article settings'); ?></span></legend>
     41<div class="form-fields">
     42<div class="field-row">
     43<div class="field-label"><?php _e('Default article settings'); ?></div>
     44<div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e('Default article settings'); ?></span></legend>
    4545<label for="default_pingback_flag">
    4646<input name="default_pingback_flag" type="checkbox" id="default_pingback_flag" value="1" <?php checked('1', get_option('default_pingback_flag')); ?> />
    4747<?php _e('Attempt to notify any blogs linked to from the article'); ?></label>
     
    5555<?php _e('Allow people to post comments on new articles'); ?></label>
    5656<br />
    5757<small><em><?php echo '(' . __('These settings may be overridden for individual articles.') . ')'; ?></em></small>
    58 </fieldset></td>
    59 </tr>
    60 <tr valign="top">
    61 <th scope="row"><?php _e('Other comment settings'); ?></th>
    62 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Other comment settings'); ?></span></legend>
     58</fieldset></div>
     59</div>
     60<div class="field-row">
     61<div class="field-label"><?php _e('Other comment settings'); ?></div>
     62<div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e('Other comment settings'); ?></span></legend>
    6363<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>
    6464<br />
    6565<label for="comment_registration">
     
    115115printf( __('Comments should be displayed with the %s comments at the top of each page'), $comment_order );
    116116
    117117?></label>
    118 </fieldset></td>
    119 </tr>
    120 <tr valign="top">
    121 <th scope="row"><?php _e('E-mail me whenever'); ?></th>
    122 <td><fieldset><legend class="screen-reader-text"><span><?php _e('E-mail me whenever'); ?></span></legend>
     118</fieldset></div>
     119</div>
     120<div class="field-row">
     121<div class="field-label"><?php _e('E-mail me whenever'); ?></div>
     122<div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e('E-mail me whenever'); ?></span></legend>
    123123<label for="comments_notify">
    124124<input name="comments_notify" type="checkbox" id="comments_notify" value="1" <?php checked('1', get_option('comments_notify')); ?> />
    125125<?php _e('Anyone posts a comment'); ?> </label>
     
    127127<label for="moderation_notify">
    128128<input name="moderation_notify" type="checkbox" id="moderation_notify" value="1" <?php checked('1', get_option('moderation_notify')); ?> />
    129129<?php _e('A comment is held for moderation'); ?> </label>
    130 </fieldset></td>
    131 </tr>
    132 <tr valign="top">
    133 <th scope="row"><?php _e('Before a comment appears'); ?></th>
    134 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Before a comment appears'); ?></span></legend>
     130</fieldset></div>
     131</div>
     132<div class="field-row">
     133<div class="field-label"><?php _e('Before a comment appears'); ?></div>
     134<div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e('Before a comment appears'); ?></span></legend>
    135135<label for="comment_moderation">
    136136<input name="comment_moderation" type="checkbox" id="comment_moderation" value="1" <?php checked('1', get_option('comment_moderation')); ?> />
    137137<?php _e('An administrator must always approve the comment'); ?> </label>
    138138<br />
    139139<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>
    140 </fieldset></td>
    141 </tr>
    142 <tr valign="top">
    143 <th scope="row"><?php _e('Comment Moderation'); ?></th>
    144 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Comment Moderation'); ?></span></legend>
     140</fieldset></div>
     141</div>
     142<div class="field-row">
     143<div class="field-label"><?php _e('Comment Moderation'); ?></div>
     144<div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e('Comment Moderation'); ?></span></legend>
    145145<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>
    146146
    147147<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 &#8220;press&#8221; will match &#8220;WordPress&#8221;.'); ?></label></p>
    148148<p>
    149149<textarea name="moderation_keys" rows="10" cols="50" id="moderation_keys" class="large-text code"><?php echo esc_textarea( get_option( 'moderation_keys' ) ); ?></textarea>
    150150</p>
    151 </fieldset></td>
    152 </tr>
    153 <tr valign="top">
    154 <th scope="row"><?php _e('Comment Blacklist'); ?></th>
    155 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Comment Blacklist'); ?></span></legend>
     151</fieldset></div>
     152</div>
     153<div class="field-row">
     154<div class="field-label"><?php _e('Comment Blacklist'); ?></div>
     155<div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e('Comment Blacklist'); ?></span></legend>
    156156<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>
    157157<p>
    158158<textarea name="blacklist_keys" rows="10" cols="50" id="blacklist_keys" class="large-text code"><?php echo esc_textarea( get_option( 'blacklist_keys' ) ); ?></textarea>
    159159</p>
    160 </fieldset></td>
    161 </tr>
     160</fieldset></div>
     161</div>
    162162<?php do_settings_fields('discussion', 'default'); ?>
    163 </table>
     163</div>
    164164
    165165<h3><?php _e('Avatars'); ?></h3>
    166166
     
    168168
    169169<?php // the above would be a good place to link to codex documentation on the gravatar functions, for putting it in themes. anything like that? ?>
    170170
    171 <table class="form-table">
    172 <tr valign="top">
    173 <th scope="row"><?php _e('Avatar Display'); ?></th>
    174 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Avatar Display'); ?></span></legend>
     171<div class="form-fields">
     172<div class="field-row">
     173<div class="field-label"><?php _e('Avatar Display'); ?></div>
     174<div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e('Avatar Display'); ?></span></legend>
    175175<?php
    176176        $yesorno = array( 0 => __( 'Don&#8217;t show Avatars' ), 1 => __( 'Show Avatars' ) );
    177177        foreach ( $yesorno as $key => $value) {
     
    179179                echo "\n\t<label><input type='radio' name='show_avatars' value='" . esc_attr($key) . "' $selected/> $value</label><br />";
    180180        }
    181181?>
    182 </fieldset></td>
    183 </tr>
    184 <tr valign="top">
    185 <th scope="row"><?php _e('Maximum Rating'); ?></th>
    186 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Maximum Rating'); ?></span></legend>
     182</fieldset></div>
     183</div>
     184<div class="field-row">
     185<div class="field-label"><?php _e('Maximum Rating'); ?></div>
     186<div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e('Maximum Rating'); ?></span></legend>
    187187
    188188<?php
    189189$ratings = array(
     
    202202endforeach;
    203203?>
    204204
    205 </fieldset></td>
    206 </tr>
    207 <tr valign="top">
    208 <th scope="row"><?php _e('Default Avatar'); ?></th>
    209 <td class="defaultavatarpicker"><fieldset><legend class="screen-reader-text"><span><?php _e('Default Avatar'); ?></span></legend>
     205</fieldset></div>
     206</div>
     207<div class="field-row">
     208<div class="field-label"><?php _e('Default Avatar'); ?></div>
     209<div class="field-input defaultavatarpicker"><fieldset><legend class="screen-reader-text"><span><?php _e('Default Avatar'); ?></span></legend>
    210210
    211211<?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 />
    212212
     
    239239echo apply_filters('default_avatar_select', $avatar_list);
    240240?>
    241241
    242 </fieldset></td>
    243 </tr>
     242</fieldset></div>
     243</div>
    244244<?php do_settings_fields('discussion', 'avatars'); ?>
    245 </table>
     245</div>
    246246
    247247<?php do_settings_sections('discussion'); ?>
    248248
  • wp-admin/options-reading.php

     
    6868
    6969<?php if ( ! get_pages() ) : ?>
    7070<input name="show_on_front" type="hidden" value="posts" />
    71 <table class="form-table">
     71<div class="form-fields">
    7272<?php
    7373        if ( 'posts' != get_option( 'show_on_front' ) ) :
    7474                update_option( 'show_on_front', 'posts' );
     
    7878        if ( 'page' == get_option( 'show_on_front' ) && ! get_option( 'page_on_front' ) && ! get_option( 'page_for_posts' ) )
    7979                update_option( 'show_on_front', 'posts' );
    8080?>
    81 <table class="form-table">
    82 <tr valign="top">
    83 <th scope="row"><?php _e( 'Front page displays' ); ?></th>
    84 <td id="front-static-pages"><fieldset><legend class="screen-reader-text"><span><?php _e( 'Front page displays' ); ?></span></legend>
     81<div class="form-fields">
     82<div class="field-row">
     83<div class="field-label"><?php _e( 'Front page displays' ); ?></div>
     84<div class="field-input" id="front-static-pages"><fieldset><legend class="screen-reader-text"><span><?php _e( 'Front page displays' ); ?></span></legend>
    8585        <p><label>
    8686                <input name="show_on_front" type="radio" value="posts" class="tog" <?php checked( 'posts', get_option( 'show_on_front' ) ); ?> />
    8787                <?php _e( 'Your latest posts' ); ?>
     
    9999<?php if ( 'page' == get_option( 'show_on_front' ) && get_option( 'page_for_posts' ) == get_option( 'page_on_front' ) ) : ?>
    100100<div id="front-page-warning" class="error inline"><p><?php _e( '<strong>Warning:</strong> these pages should not be the same!' ); ?></p></div>
    101101<?php endif; ?>
    102 </fieldset></td>
    103 </tr>
     102</fieldset></div>
     103</div>
    104104<?php endif; ?>
    105 <tr valign="top">
    106 <th scope="row"><label for="posts_per_page"><?php _e( 'Blog pages show at most' ); ?></label></th>
    107 <td>
     105<div class="field-row">
     106<div class="field-label"><label for="posts_per_page"><?php _e( 'Blog pages show at most' ); ?></label></div>
     107<div class="field-input">
    108108<input name="posts_per_page" type="text" id="posts_per_page" value="<?php form_option( 'posts_per_page' ); ?>" class="small-text" /> <?php _e( 'posts' ); ?>
    109 </td>
    110 </tr>
    111 <tr valign="top">
    112 <th scope="row"><label for="posts_per_rss"><?php _e( 'Syndication feeds show the most recent' ); ?></label></th>
    113 <td><input name="posts_per_rss" type="text" id="posts_per_rss" value="<?php form_option( 'posts_per_rss' ); ?>" class="small-text" /> <?php _e( 'items' ); ?></td>
    114 </tr>
    115 <tr valign="top">
    116 <th scope="row"><?php _e( 'For each article in a feed, show' ); ?> </th>
    117 <td><fieldset><legend class="screen-reader-text"><span><?php _e( 'For each article in a feed, show' ); ?> </span></legend>
     109</div>
     110</div>
     111<div class="field-row">
     112<div class="field-label"><label for="posts_per_rss"><?php _e( 'Syndication feeds show the most recent' ); ?></label></div>
     113<div class="field-input"><input name="posts_per_rss" type="text" id="posts_per_rss" value="<?php form_option( 'posts_per_rss' ); ?>" class="small-text" /> <?php _e( 'items' ); ?></div>
     114</div>
     115<div class="field-row">
     116<div class="field-label"><?php _e( 'For each article in a feed, show' ); ?> </div>
     117<div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e( 'For each article in a feed, show' ); ?> </span></legend>
    118118<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 />
    119119<label><input name="rss_use_excerpt" type="radio" value="1" <?php checked( 1, get_option( 'rss_use_excerpt' ) ); ?> /> <?php _e( 'Summary' ); ?></label></p>
    120 </fieldset></td>
    121 </tr>
     120</fieldset></div>
     121</div>
    122122
    123 <tr valign="top">
    124 <th scope="row"><label for="blog_charset"><?php _e( 'Encoding for pages and feeds' ); ?></label></th>
    125 <td><input name="blog_charset" type="text" id="blog_charset" value="<?php form_option( 'blog_charset' ); ?>" class="regular-text" />
    126 <span class="description"><?php _e( 'The <a href="http://codex.wordpress.org/Glossary#Character_set">character encoding</a> of your site (UTF-8 is recommended, if you are adventurous there are some <a href="http://en.wikipedia.org/wiki/Character_set">other encodings</a>)' ); ?></span></td>
    127 </tr>
     123<div class="field-row">
     124<div class="field-label"><label for="blog_charset"><?php _e( 'Encoding for pages and feeds' ); ?></label></div>
     125<div class="field-input"><input name="blog_charset" type="text" id="blog_charset" value="<?php form_option( 'blog_charset' ); ?>" class="regular-text" />
     126<span class="description"><?php _e( 'The <a href="http://codex.wordpress.org/Glossary#Character_set">character encoding</a> of your site (UTF-8 is recommended, if you are adventurous there are some <a href="http://en.wikipedia.org/wiki/Character_set">other encodings</a>)' ); ?></span></div>
     127</div>
    128128<?php do_settings_fields( 'reading', 'default' ); ?>
    129 </table>
     129</div>
    130130
    131131<?php do_settings_sections( 'reading' ); ?>
    132132
  • wp-admin/options-permalink.php

     
    191191);
    192192?>
    193193<h3><?php _e('Common Settings'); ?></h3>
    194 <table class="form-table">
    195         <tr>
    196                 <th><label><input name="selection" type="radio" value="" class="tog" <?php checked('', $permalink_structure); ?> /> <?php _e('Default'); ?></label></th>
    197                 <td><code><?php echo get_option('home'); ?>/?p=123</code></td>
    198         </tr>
    199         <tr>
    200                 <th><label><input name="selection" type="radio" value="<?php echo esc_attr($structures[1]); ?>" class="tog" <?php checked($structures[1], $permalink_structure); ?> /> <?php _e('Day and name'); ?></label></th>
    201                 <td><code><?php echo get_option('home') . $blog_prefix . $prefix . '/' . date('Y') . '/' . date('m') . '/' . date('d') . '/' . _x( 'sample-post', 'sample permalink structure' ) . '/'; ?></code></td>
    202         </tr>
    203         <tr>
    204                 <th><label><input name="selection" type="radio" value="<?php echo esc_attr($structures[2]); ?>" class="tog" <?php checked($structures[2], $permalink_structure); ?> /> <?php _e('Month and name'); ?></label></th>
    205                 <td><code><?php echo get_option('home') . $blog_prefix . $prefix . '/' . date('Y') . '/' . date('m') . '/' . _x( 'sample-post', 'sample permalink structure' ) . '/'; ?></code></td>
    206         </tr>
    207         <tr>
    208                 <th><label><input name="selection" type="radio" value="<?php echo esc_attr($structures[3]); ?>" class="tog" <?php checked($structures[3], $permalink_structure); ?> /> <?php _e('Numeric'); ?></label></th>
    209                 <td><code><?php echo get_option('home') . $blog_prefix . $prefix . '/' . _x( 'archives', 'sample permalink base' ) . '/123'; ?></code></td>
    210         </tr>
    211         <tr>
    212                 <th><label><input name="selection" type="radio" value="<?php echo esc_attr($structures[4]); ?>" class="tog" <?php checked($structures[4], $permalink_structure); ?> /> <?php _e('Post name'); ?></label></th>
    213                 <td><code><?php echo get_option('home') . $blog_prefix . $prefix . '/' . _x( 'sample-post', 'sample permalink structure' ) . '/'; ?></code></td>
    214         </tr>
    215         <tr>
    216                 <th>
     194<div class="form-fields">
     195        <div class="field-row">
     196                <div class="field-label"><label><input name="selection" type="radio" value="" class="tog" <?php checked('', $permalink_structure); ?> /> <?php _e('Default'); ?></label></div>
     197                <div class="field-input"><code><?php echo get_option('home'); ?>/?p=123</code></div>
     198        </div>
     199        <div class="field-row">
     200                <div class="field-label"><label><input name="selection" type="radio" value="<?php echo esc_attr($structures[1]); ?>" class="tog" <?php checked($structures[1], $permalink_structure); ?> /> <?php _e('Day and name'); ?></label></div>
     201                <div class="field-input"><code><?php echo get_option('home') . $blog_prefix . $prefix . '/' . date('Y') . '/' . date('m') . '/' . date('d') . '/' . _x( 'sample-post', 'sample permalink structure' ) . '/'; ?></code></div>
     202        </div>
     203        <div class="field-row">
     204                <div class="field-label"><label><input name="selection" type="radio" value="<?php echo esc_attr($structures[2]); ?>" class="tog" <?php checked($structures[2], $permalink_structure); ?> /> <?php _e('Month and name'); ?></label></div>
     205                <div class="field-input"><code><?php echo get_option('home') . $blog_prefix . $prefix . '/' . date('Y') . '/' . date('m') . '/' . _x( 'sample-post', 'sample permalink structure' ) . '/'; ?></code></div>
     206        </div>
     207        <div class="field-row">
     208                <div class="field-label"><label><input name="selection" type="radio" value="<?php echo esc_attr($structures[3]); ?>" class="tog" <?php checked($structures[3], $permalink_structure); ?> /> <?php _e('Numeric'); ?></label></div>
     209                <div class="field-input"><code><?php echo get_option('home') . $blog_prefix . $prefix . '/' . _x( 'archives', 'sample permalink base' ) . '/123'; ?></code></div>
     210        </div>
     211        <div class="field-row">
     212                <div class="field-label"><label><input name="selection" type="radio" value="<?php echo esc_attr($structures[4]); ?>" class="tog" <?php checked($structures[4], $permalink_structure); ?> /> <?php _e('Post name'); ?></label></div>
     213                <div class="field-input"><code><?php echo get_option('home') . $blog_prefix . $prefix . '/' . _x( 'sample-post', 'sample permalink structure' ) . '/'; ?></code></div>
     214        </div>
     215        <div class="field-row">
     216                <div class="field-label">
    217217                        <label><input name="selection" id="custom_selection" type="radio" value="custom" class="tog" <?php checked( !in_array($permalink_structure, $structures) ); ?> />
    218218                        <?php _e('Custom Structure'); ?>
    219219                        </label>
    220                 </th>
    221                 <td>
     220                </div>
     221                <div class="field-input">
    222222                        <?php echo $blog_prefix; ?>
    223223                        <input name="permalink_structure" id="permalink_structure" type="text" value="<?php echo esc_attr($permalink_structure); ?>" class="regular-text code" />
    224                 </td>
    225         </tr>
    226 </table>
     224                </div>
     225        </div>
     226</div>
    227227
    228228<h3><?php _e('Optional'); ?></h3>
    229229<?php if ( $is_apache || $iis7_permalinks ) : ?>
     
    232232        <p><?php _e('If you like, you may enter custom structures for your category and tag <abbr title="Universal Resource Locator">URL</abbr>s here. For example, using <code>topics</code> as your category base would make your category links like <code>http://example.org/index.php/topics/uncategorized/</code>. If you leave these blank the defaults will be used.') ?></p>
    233233<?php endif; ?>
    234234
    235 <table class="form-table">
    236         <tr>
    237                 <th><label for="category_base"><?php /* translators: prefix for category permalinks */ _e('Category base'); ?></label></th>
    238                 <td><?php echo $blog_prefix; ?> <input name="category_base" id="category_base" type="text" value="<?php echo esc_attr( $category_base ); ?>" class="regular-text code" /></td>
    239         </tr>
    240         <tr>
    241                 <th><label for="tag_base"><?php _e('Tag base'); ?></label></th>
    242                 <td><?php echo $blog_prefix; ?> <input name="tag_base" id="tag_base" type="text" value="<?php echo esc_attr($tag_base); ?>" class="regular-text code" /></td>
    243         </tr>
     235<div class="form-fields">
     236        <div class="field-row">
     237                <div class="field-label"><label for="category_base"><?php /* translators: prefix for category permalinks */ _e('Category base'); ?></label></div>
     238                <div class="field-input"><?php echo $blog_prefix; ?> <input name="category_base" id="category_base" type="text" value="<?php echo esc_attr( $category_base ); ?>" class="regular-text code" /></div>
     239        </div>
     240        <div class="field-row">
     241                <div class="field-label"><label for="tag_base"><?php _e('Tag base'); ?></label></div>
     242                <div class="field-input"><?php echo $blog_prefix; ?> <input name="tag_base" id="tag_base" type="text" value="<?php echo esc_attr($tag_base); ?>" class="regular-text code" /></div>
     243        </div>
    244244        <?php do_settings_fields('permalink', 'optional'); ?>
    245 </table>
     245</div>
    246246
    247247<?php do_settings_sections('permalink'); ?>
    248248
  • wp-admin/options-writing.php

     
    6969<form method="post" action="options.php">
    7070<?php settings_fields('writing'); ?>
    7171
    72 <table class="form-table">
    73 <tr valign="top">
    74 <th scope="row"><label for="default_post_edit_rows"> <?php _e('Size of the post box') ?></label></th>
    75 <td><input name="default_post_edit_rows" type="text" id="default_post_edit_rows" value="<?php form_option('default_post_edit_rows'); ?>" class="small-text" />
    76 <?php _e('lines') ?></td>
    77 </tr>
    78 <tr valign="top">
    79 <th scope="row"><?php _e('Formatting') ?></th>
    80 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Formatting') ?></span></legend>
     72<div class="form-fields">
     73<div class="field-row">
     74<div class="field-label"><label for="default_post_edit_rows"> <?php _e('Size of the post box') ?></label></div>
     75<div class="field-input"><input name="default_post_edit_rows" type="text" id="default_post_edit_rows" value="<?php form_option('default_post_edit_rows'); ?>" class="small-text" />
     76<?php _e('lines') ?></div>
     77</div>
     78<div class="field-row">
     79<div class="field-label"><?php _e('Formatting') ?></div>
     80<div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e('Formatting') ?></span></legend>
    8181<label for="use_smilies">
    8282<input name="use_smilies" type="checkbox" id="use_smilies" value="1" <?php checked('1', get_option('use_smilies')); ?> />
    8383<?php _e('Convert emoticons like <code>:-)</code> and <code>:-P</code> to graphics on display') ?></label><br />
    8484<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>
    85 </fieldset></td>
    86 </tr>
    87 <tr valign="top">
    88 <th scope="row"><label for="default_category"><?php _e('Default Post Category') ?></label></th>
    89 <td>
     85</fieldset></div>
     86</div>
     87<div class="field-row">
     88<div class="field-label"><label for="default_category"><?php _e('Default Post Category') ?></label></div>
     89<div class="field-input">
    9090<?php
    9191wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'default_category', 'orderby' => 'name', 'selected' => get_option('default_category'), 'hierarchical' => true));
    9292?>
    93 </td>
    94 </tr>
     93</div>
     94</div>
    9595<?php
    9696if ( current_theme_supports( 'post-formats' ) ) :
    9797        $post_formats = get_theme_support( 'post-formats' );
    9898        if ( is_array( $post_formats[0] ) ) :
    9999?>
    100 <tr valign="top">
    101 <th scope="row"><label for="default_post_format"><?php _e('Default Post Format') ?></label></th>
    102 <td>
     100<div class="field-row">
     101<div class="field-label"><label for="default_post_format"><?php _e('Default Post Format') ?></label></div>
     102<div class="field-input">
    103103        <select name="default_post_format" id="default_post_format">
    104104                <option value="0"><?php _e('Standard'); ?></option>
    105105<?php foreach ( $post_formats[0] as $format ): ?>
    106106                <option<?php selected( get_option('default_post_format'), $format ); ?> value="<?php echo esc_attr( $format ); ?>"><?php echo esc_html( get_post_format_string( $format ) ); ?></option>
    107107<?php endforeach; ?>
    108108        </select>
    109 </td>
    110 </tr>
     109</div>
     110</div>
    111111<?php endif; endif; ?>
    112 <tr valign="top">
    113 <th scope="row"><label for="default_link_category"><?php _e('Default Link Category') ?></label></th>
    114 <td>
     112<div class="field-row">
     113<div class="field-label"><label for="default_link_category"><?php _e('Default Link Category') ?></label></div>
     114<div class="field-input">
    115115<?php
    116116wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'default_link_category', 'orderby' => 'name', 'selected' => get_option('default_link_category'), 'hierarchical' => true, 'taxonomy' => 'link_category'));
    117117?>
    118 </td>
    119 </tr>
     118</div>
     119</div>
    120120<?php do_settings_fields('writing', 'default'); ?>
    121 </table>
     121</div>
    122122
    123123
    124124<h3 class="title"><?php _e('Press This') ?></h3>
     
    135135<h3><?php _e('Post via e-mail') ?></h3>
    136136<p><?php printf(__('To post to WordPress by e-mail you must set up a secret e-mail account with POP3 access. Any mail received at this address will be posted, so it&#8217;s a good idea to keep this address very secret. Here are three random strings you could use: <kbd>%s</kbd>, <kbd>%s</kbd>, <kbd>%s</kbd>.'), wp_generate_password(8, false), wp_generate_password(8, false), wp_generate_password(8, false)) ?></p>
    137137
    138 <table class="form-table">
    139 <tr valign="top">
    140 <th scope="row"><label for="mailserver_url"><?php _e('Mail Server') ?></label></th>
    141 <td><input name="mailserver_url" type="text" id="mailserver_url" value="<?php form_option('mailserver_url'); ?>" class="regular-text code" />
     138<div class="form-fields">
     139<div class="field-row">
     140<div class="field-label"><label for="mailserver_url"><?php _e('Mail Server') ?></label></div>
     141<div class="field-input"><input name="mailserver_url" type="text" id="mailserver_url" value="<?php form_option('mailserver_url'); ?>" class="regular-text code" />
    142142<label for="mailserver_port"><?php _e('Port') ?></label>
    143143<input name="mailserver_port" type="text" id="mailserver_port" value="<?php form_option('mailserver_port'); ?>" class="small-text" />
    144 </td>
    145 </tr>
    146 <tr valign="top">
    147 <th scope="row"><label for="mailserver_login"><?php _e('Login Name') ?></label></th>
    148 <td><input name="mailserver_login" type="text" id="mailserver_login" value="<?php form_option('mailserver_login'); ?>" class="regular-text" /></td>
    149 </tr>
    150 <tr valign="top">
    151 <th scope="row"><label for="mailserver_pass"><?php _e('Password') ?></label></th>
    152 <td>
     144</div>
     145</div>
     146<div class="field-row">
     147<div class="field-label"><label for="mailserver_login"><?php _e('Login Name') ?></label></div>
     148<div class="field-input"><input name="mailserver_login" type="text" id="mailserver_login" value="<?php form_option('mailserver_login'); ?>" class="regular-text" /></div>
     149</div>
     150<div class="field-row">
     151<div class="field-label"><label for="mailserver_pass"><?php _e('Password') ?></label></div>
     152<div class="field-input">
    153153<input name="mailserver_pass" type="text" id="mailserver_pass" value="<?php form_option('mailserver_pass'); ?>" class="regular-text" />
    154 </td>
    155 </tr>
    156 <tr valign="top">
    157 <th scope="row"><label for="default_email_category"><?php _e('Default Mail Category') ?></label></th>
    158 <td>
     154</div>
     155</div>
     156<div class="field-row">
     157<div class="field-label"><label for="default_email_category"><?php _e('Default Mail Category') ?></label></div>
     158<div class="field-input">
    159159<?php
    160160wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'default_email_category', 'orderby' => 'name', 'selected' => get_option('default_email_category'), 'hierarchical' => true));
    161161?>
    162 </td>
    163 </tr>
     162</div>
     163</div>
    164164<?php do_settings_fields('writing', 'post_via_email'); ?>
    165 </table>
     165</div>
    166166<?php } ?>
    167167
    168168<h3><?php _e('Remote Publishing') ?></h3>
    169169<p><?php printf(__('To post to WordPress from a desktop blogging client or remote website that uses the Atom Publishing Protocol or one of the XML-RPC publishing interfaces you must enable them below.')) ?></p>
    170 <table class="form-table">
    171 <tr valign="top">
    172 <th scope="row"><?php _e('Atom Publishing Protocol') ?></th>
    173 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Atom Publishing Protocol') ?></span></legend>
     170<div class="form-fields">
     171<div class="field-row">
     172<div class="field-label"><?php _e('Atom Publishing Protocol') ?></div>
     173<div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e('Atom Publishing Protocol') ?></span></legend>
    174174<label for="enable_app">
    175175<input name="enable_app" type="checkbox" id="enable_app" value="1" <?php checked('1', get_option('enable_app')); ?> />
    176176<?php _e('Enable the Atom Publishing Protocol.') ?></label><br />
    177 </fieldset></td>
    178 </tr>
    179 <tr valign="top">
    180 <th scope="row"><?php _e('XML-RPC') ?></th>
    181 <td><fieldset><legend class="screen-reader-text"><span><?php _e('XML-RPC') ?></span></legend>
     177</fieldset></div>
     178</div>
     179<div class="field-row">
     180<div class="field-label"><?php _e('XML-RPC') ?></div>
     181<div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e('XML-RPC') ?></span></legend>
    182182<label for="enable_xmlrpc">
    183183<input name="enable_xmlrpc" type="checkbox" id="enable_xmlrpc" value="1" <?php checked('1', get_option('enable_xmlrpc')); ?> />
    184184<?php _e('Enable the WordPress, Movable Type, MetaWeblog and Blogger XML-RPC publishing protocols.') ?></label><br />
    185 </fieldset></td>
    186 </tr>
     185</fieldset></div>
     186</div>
    187187<?php do_settings_fields('writing', 'remote_publishing'); ?>
    188 </table>
     188</div>
    189189
    190190<?php if ( apply_filters( 'enable_update_services_configuration', true ) ) { ?>
    191191<h3><?php _e('Update Services') ?></h3>
  • wp-admin/options.php

     
    175175  <?php wp_nonce_field('options-options') ?>
    176176  <input type="hidden" name="action" value="update" />
    177177  <input type='hidden' name='option_page' value='options' />
    178   <table class="form-table">
     178  <div class="form-fields">
    179179<?php
    180180$options = $wpdb->get_results( "SELECT * FROM $wpdb->options ORDER BY option_name" );
    181181
     
    201201        }
    202202        $name = esc_attr( $option->option_name );
    203203        echo "
    204 <tr>
    205         <th scope='row'><label for='$name'>" . esc_html( $option->option_name ) . "</label></th>
    206 <td>";
     204<div class='field-row>
     205        <div class='field-label'><label for='$name'>" . esc_html( $option->option_name ) . "</label></div>
     206<div class='field-input'>";
    207207        if ( strpos( $value, "\n" ) !== false )
    208208                echo "<textarea class='$class' name='$name' id='$name' cols='30' rows='5'>" . esc_textarea( $value ) . "</textarea>";
    209209        else
    210210                echo "<input class='regular-text $class' type='text' name='$name' id='$name' value='" . esc_attr( $value ) . "'" . disabled( $disabled, true, false ) . " />";
    211         echo "</td>
    212 </tr>";
     211        echo "</div>
     212</div>";
    213213endforeach;
    214214?>
    215   </table>
     215  </div>
    216216
    217217<input type="hidden" name="page_options" value="<?php echo esc_attr( implode( ',', $options_to_update ) ); ?>" />
    218218