WordPress.org

Make WordPress Core

Ticket #5851: 5851.fieldsetToH3.diff

File 5851.fieldsetToH3.diff, 7.5 KB (added by hansengel, 6 years ago)

Now uses H3s instead of Fieldsets to separate setting sections

  • wp-admin/options-misc.php

     
    1313<form method="post" action="options.php"> 
    1414<?php wp_nonce_field('update-options') ?> 
    1515<p class="submit"><input type="submit" name="Submit" value="<?php _e('Save Changes &raquo;') ?>" /></p> 
    16 <fieldset class="options"> 
    17 <legend><?php _e('Uploading'); ?></legend> 
     16<h3><?php _e('Uploading'); ?></h3> 
    1817<table class="niceblue"> 
    1918<tr valign="top"> 
    2019<th scope="row"><?php _e('Store uploads in this folder'); ?>:</th> 
     
    4039</td> 
    4140</tr> 
    4241</table> 
    43 </fieldset> 
    4442 
    4543<p><input name="use_linksupdate" type="checkbox" id="use_linksupdate" value="1" <?php checked('1', get_option('use_linksupdate')); ?> /> 
    4644<label for="use_linksupdate"><?php _e('Track Links&#8217; Update Times') ?></label></p> 
  • wp-admin/options-discussion.php

     
    1212<form method="post" action="options.php"> 
    1313<?php wp_nonce_field('update-options') ?> 
    1414<p class="submit"><input type="submit" name="Submit" value="<?php _e('Save Changes &raquo;') ?>" /></p> 
    15 <fieldset class="options"> 
    16 <legend><?php echo __('Usual settings for an article:').'<br /><small><em>('.__('These settings may be overridden for individual articles.').')</em></small>'; ?></legend> 
     15<h3><?php _e('Usual settings for an article:') ?></h3> 
     16<small><em><?php echo '(' . __('These settings may be overridden for individual articles.') . ')'; ?></em></small> 
    1717<ul> 
    1818<li> 
    1919<label for="default_pingback_flag"> 
     
    3131<?php _e('Allow people to post comments on the article') ?></label> 
    3232</li> 
    3333</ul> 
    34 </fieldset> 
    35 <fieldset class="options"> 
    36 <legend><?php _e('E-mail me whenever:') ?></legend> 
     34 
     35<h3><?php _e('E-mail me whenever:') ?></h3> 
    3736<ul> 
    3837<li> 
    3938<label for="comments_notify"> 
     
    4645<?php _e('A comment is held for moderation') ?> </label> 
    4746</li> 
    4847</ul> 
    49 </fieldset> 
    50 <fieldset class="options"> 
    51 <legend><?php _e('Before a comment appears:') ?></legend> 
     48 
     49<h3><?php _e('Before a comment appears:') ?></h3> 
    5250<ul> 
    5351<li> 
    5452<label for="comment_moderation"> 
     
    5856<li><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></li> 
    5957<li><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></li> 
    6058</ul> 
    61 </fieldset> 
    62 <fieldset class="options"> 
    63 <legend><?php _e('Comment Moderation') ?></legend> 
     59 
     60<h3><?php _e('Comment Moderation') ?></h3> 
    6461<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> 
    6562 
    6663<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="moderation.php">moderation queue</a>. One word or IP per line. It will match inside words, so "press" will match "WordPress".') ?></p> 
    6764<p> 
    6865<textarea name="moderation_keys" cols="60" rows="4" id="moderation_keys" style="width: 98%; font-size: 12px;" class="code"><?php form_option('moderation_keys'); ?></textarea> 
    6966</p> 
    70 </fieldset> 
    71 <fieldset class="options"> 
    72 <legend><?php _e('Comment Blacklist') ?></legend> 
     67 
     68<h3><?php _e('Comment Blacklist') ?></h3> 
    7369<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> 
    7470<p> 
    7571<textarea name="blacklist_keys" cols="60" rows="4" id="blacklist_keys" style="width: 98%; font-size: 12px;" class="code"><?php form_option('blacklist_keys'); ?></textarea> 
    7672</p> 
    77 </fieldset> 
     73 
    7874<p class="submit"> 
    7975<input type="hidden" name="action" value="update" /> 
    8076<input type="hidden" name="page_options" value="default_pingback_flag,default_ping_status,default_comment_status,comments_notify,moderation_notify,comment_moderation,require_name_email,comment_whitelist,comment_max_links,moderation_keys,blacklist_keys" /> 
  • wp-admin/options-reading.php

     
    1313<?php wp_nonce_field('update-options') ?> 
    1414<p class="submit"><input type="submit" name="Submit" value="<?php _e('Save Changes &raquo;') ?>" /></p> 
    1515<?php if ( get_pages() ): ?> 
    16 <fieldset class="options"> 
    17 <legend><?php _e('Front Page') ?></legend> 
     16<h3><?php _e('Front Page') ?></h3> 
    1817<table class="niceblue"> 
    1918<tr valign="top"> 
    2019<th width="33%" scope="row"><?php _e('Front page displays:')?></th> 
     
    4342</td> 
    4443</tr> 
    4544</table> 
    46 </fieldset> 
    4745<?php endif; ?> 
    4846 
    49 <fieldset class="options"> 
    50 <legend><?php _e('Blog Pages') ?></legend> 
     47<h3><?php _e('Blog Pages') ?></h3> 
    5148<table class="niceblue"> 
    5249<tr valign="top"> 
    5350<th width="33%" scope="row"><?php _e('Show at most:') ?></th> 
     
    5855</table> 
    5956</fieldset> 
    6057 
    61 <fieldset class="options"> 
    62 <legend><?php _e('Syndication Feeds') ?></legend> 
     58<h3><?php _e('Syndication Feeds') ?></h3> 
    6359<table width="100%" cellspacing="2" cellpadding="5" class="optiontable editform"> 
    6460<tr valign="top"> 
    6561<th width="33%" scope="row"><?php _e('Show the most recent:') ?></th> 
     
    7369</td> 
    7470</tr> 
    7571</table> 
    76 </fieldset> 
    7772 
    78 <fieldset class="options"> 
    79 <legend><?php _e('Avatars') ?></legend> 
     73<h3><?php _e('Avatars') ?></h3> 
    8074<table class="niceblue"> 
    8175<tr valign="top"> 
    8276<th width="33%" scope="row"><?php _e('Show Avatars?') ?></th> 
     
    107101</td> 
    108102</tr> 
    109103</table> 
    110 </fieldset> 
    111104 
    112105<table class="niceblue"> 
    113106<tr valign="top"> 
  • wp-admin/options-writing.php

     
    5858</tr> 
    5959</table> 
    6060 
    61 <fieldset class="options"> 
    62 <legend><?php _e('Post via e-mail') ?></legend> 
     61<h3><?php _e('Post via e-mail') ?></h3> 
    6362<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: <code>%s</code>, <code>%s</code>, <code>%s</code>.'), wp_generate_password(), wp_generate_password(), wp_generate_password()) ?></p> 
    6463 
    6564<table class="niceblue"> 
     
    9594</select></td> 
    9695</tr> 
    9796</table> 
    98 </fieldset> 
    9997 
    100 <fieldset class="options"> 
    101 <legend><?php _e('Update Services') ?></legend> 
     98<h3><?php _e('Update Services') ?></h3> 
    10299 
    103100<?php if ( get_option('blog_public') ) : ?> 
    104101 
     
    112109 
    113110<?php endif; ?> 
    114111 
    115 </fieldset> 
    116  
    117112<p class="submit"> 
    118113<input type="hidden" name="action" value="update" /> 
    119114<input type="hidden" name="page_options" value="default_post_edit_rows,use_smilies,ping_sites,mailserver_url,mailserver_port,mailserver_login,mailserver_pass,default_category,default_email_category,use_balanceTags,default_link_category" />