Make WordPress Core

Changeset 20605


Ignore:
Timestamp:
04/26/2012 12:58:16 AM (14 years ago)
Author:
nacin
Message:

Add line breaks before most form field descriptions (the italicized gray text on General Settings and other screens). props johnbillion, helenyhou, fixes #17390.

Location:
trunk/wp-admin
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-tag-form.php

    r19596 r20605  
    5353            <th scope="row" valign="top"><label for="parent"><?php _ex('Parent', 'Taxonomy Parent'); ?></label></th>
    5454            <td>
    55                 <?php wp_dropdown_categories(array('hide_empty' => 0, 'hide_if_empty' => false, 'name' => 'parent', 'orderby' => 'name', 'taxonomy' => $taxonomy, 'selected' => $tag->parent, 'exclude_tree' => $tag->term_id, 'hierarchical' => true, 'show_option_none' => __('None'))); ?><br />
     55                <?php wp_dropdown_categories(array('hide_empty' => 0, 'hide_if_empty' => false, 'name' => 'parent', 'orderby' => 'name', 'taxonomy' => $taxonomy, 'selected' => $tag->parent, 'exclude_tree' => $tag->term_id, 'hierarchical' => true, 'show_option_none' => __('None'))); ?>
    5656                <?php if ( 'category' == $taxonomy ) : ?>
    57                 <span class="description"><?php _e('Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have children categories for Bebop and Big Band. Totally optional.'); ?></span>
     57                <p class="description"><?php _e('Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have children categories for Bebop and Big Band. Totally optional.'); ?></p>
    5858                <?php endif; ?>
    5959            </td>
     
    6262        <tr class="form-field">
    6363            <th scope="row" valign="top"><label for="description"><?php _ex('Description', 'Taxonomy Description'); ?></label></th>
    64             <td><textarea name="description" id="description" rows="5" cols="50" style="width: 97%;"><?php echo $tag->description; // textarea_escaped ?></textarea><br />
     64            <td><textarea name="description" id="description" rows="5" cols="50" class="large-text"><?php echo $tag->description; // textarea_escaped ?></textarea><br />
    6565            <span class="description"><?php _e('The description is not prominent by default, however some themes may show it.'); ?></span></td>
    6666        </tr>
  • trunk/wp-admin/export.php

    r19626 r20605  
    131131<form action="" method="get" id="export-filters">
    132132<input type="hidden" name="download" value="true" />
    133 <p><label><input type="radio" name="content" value="all" checked="checked" /> <?php _e( 'All content' ); ?></label>
    134 <span class="description"><?php _e( 'This will contain all of your posts, pages, comments, custom fields, terms, navigation menus and custom posts.' ); ?></span></p>
     133<p><label><input type="radio" name="content" value="all" checked="checked" /> <?php _e( 'All content' ); ?></label></p>
     134<p class="description"><?php _e( 'This will contain all of your posts, pages, comments, custom fields, terms, navigation menus and custom posts.' ); ?></p>
    135135
    136136<p><label><input type="radio" name="content" value="posts" /> <?php _e( 'Posts' ); ?></label></p>
  • trunk/wp-admin/options-general.php

    r20196 r20605  
    100100<th scope="row"><label for="blogdescription"><?php _e('Tagline') ?></label></th>
    101101<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>
     102<p class="description"><?php _e('In a few words, explain what this site is about.') ?></p></td>
    103103</tr>
    104104<?php if ( !is_multisite() ) { ?>
     
    110110<th scope="row"><label for="home"><?php _e('Site Address (URL)') ?></label></th>
    111111<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>
     112<p 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.'); ?></p></td>
    113113</tr>
    114114<tr valign="top">
    115115<th scope="row"><label for="admin_email"><?php _e('E-mail Address') ?> </label></th>
    116116<td><input name="admin_email" type="text" id="admin_email" value="<?php form_option('admin_email'); ?>" class="regular-text ltr" />
    117 <span class="description"><?php _e('This address is used for admin purposes, like new user notification.') ?></span></td>
     117<p class="description"><?php _e('This address is used for admin purposes, like new user notification.') ?></p></td>
    118118</tr>
    119119<tr valign="top">
     
    134134<th scope="row"><label for="new_admin_email"><?php _e('E-mail Address') ?> </label></th>
    135135<td><input name="new_admin_email" type="text" id="new_admin_email" value="<?php form_option('admin_email'); ?>" class="regular-text ltr" />
    136 <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>
     136<p 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>') ?></p>
    137137<?php
    138138$new_admin_email = get_option( 'new_admin_email' );
     
    178178    <span id="local-time"><?php printf(__('Local time is <code>%1$s</code>'), date_i18n($timezone_format)); ?></span>
    179179<?php endif; ?>
    180 <br />
    181 <span class="description"><?php _e('Choose a city in the same timezone as you.'); ?></span>
     180<p class="description"><?php _e('Choose a city in the same timezone as you.'); ?></p>
    182181<?php if ($check_zone_info && $tzstring) : ?>
    183182<br />
  • trunk/wp-admin/options-media.php

    r20204 r20605  
    110110<label for="embed_size_h"><?php _e('Height'); ?></label>
    111111<input name="embed_size_h" type="number" step="1" min="0" id="embed_size_h" value="<?php form_option('embed_size_h'); ?>" class="small-text" />
    112 <?php if ( !empty($content_width) ) echo '<br />' . __("If the width value is left blank, embeds will default to the max width of your theme."); ?>
     112<?php if ( ! empty( $content_width ) )
     113    echo '<p class="description">' . __( 'If the width value is left blank, embeds will default to the max width of your theme.' ) . '</p>';
     114?>
    113115</td>
    114116</tr>
     
    123125<th scope="row"><label for="upload_path"><?php _e('Store uploads in this folder'); ?></label></th>
    124126<td><input name="upload_path" type="text" id="upload_path" value="<?php echo esc_attr(get_option('upload_path')); ?>" class="regular-text code" />
    125 <span class="description"><?php _e('Default is <code>wp-content/uploads</code>'); ?></span>
     127<p class="description"><?php _e('Default is <code>wp-content/uploads</code>'); ?></p>
    126128</td>
    127129</tr>
     
    130132<th scope="row"><label for="upload_url_path"><?php _e('Full URL path to files'); ?></label></th>
    131133<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" />
    132 <span class="description"><?php _e('Configuring this is optional. By default, it should be blank.'); ?></span>
     134<p class="description"><?php _e('Configuring this is optional. By default, it should be blank.'); ?></p>
    133135</td>
    134136</tr>
  • trunk/wp-admin/options-reading.php

    r20168 r20605  
    124124<th scope="row"><label for="blog_charset"><?php _e( 'Encoding for pages and feeds' ); ?></label></th>
    125125<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>
     126<p 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>)' ); ?></p></td>
    127127</tr>
    128128<?php do_settings_fields( 'reading', 'default' ); ?>
Note: See TracChangeset for help on using the changeset viewer.