Make WordPress Core

Changeset 11511


Ignore:
Timestamp:
06/03/2009 11:50:06 AM (16 years ago)
Author:
azaozz
Message:

Add .description html class to edit-category-form.php and edit-tag-form.php, props Simek, fixes #9845

Location:
trunk/wp-admin
Files:
3 edited

Legend:

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

    r11380 r11511  
    5151            <th scope="row" valign="top"><label for="cat_name"><?php _e('Category Name') ?></label></th>
    5252            <td><input name="cat_name" id="cat_name" type="text" value="<?php echo esc_attr($category->name); ?>" size="40" aria-required="true" /><br />
    53             <?php _e('The name is used to identify the category almost everywhere, for example under the post or in the category widget.'); ?></td>
     53            <span class="description"><?php _e('The name is used to identify the category almost everywhere, for example under the post or in the category widget.'); ?></span></td>
    5454        </tr>
    5555        <tr class="form-field">
    5656            <th scope="row" valign="top"><label for="category_nicename"><?php _e('Category Slug') ?></label></th>
    5757            <td><input name="category_nicename" id="category_nicename" type="text" value="<?php echo esc_attr(apply_filters('editable_slug', $category->slug)); ?>" size="40" /><br />
    58             <?php _e('The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></td>
     58            <span class="description"><?php _e('The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></span></td>
    5959        </tr>
    6060        <tr class="form-field">
     
    6262            <td>
    6363                <?php wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'category_parent', 'orderby' => 'name', 'selected' => $category->parent, 'hierarchical' => true, 'show_option_none' => __('None'))); ?><br />
    64                 <?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.'); ?>
     64                <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>
    6565            </td>
    6666        </tr>
     
    6868            <th scope="row" valign="top"><label for="category_description"><?php _e('Description') ?></label></th>
    6969            <td><textarea name="category_description" id="category_description" rows="5" cols="50" style="width: 97%;"><?php echo esc_html($category->description); ?></textarea><br />
    70             <?php _e('The description is not prominent by default, however some themes may show it.'); ?></td>
     70            <span class="description"><?php _e('The description is not prominent by default, however some themes may show it.'); ?></span></td>
    7171        </tr>
    7272    </table>
  • trunk/wp-admin/edit-tag-form.php

    r11380 r11511  
    2828            <th scope="row" valign="top"><label for="name"><?php _e('Tag name') ?></label></th>
    2929            <td><input name="name" id="name" type="text" value="<?php if ( isset( $tag->name ) ) echo esc_attr($tag->name); ?>" size="40" aria-required="true" />
    30             <p><?php _e('The name is how the tag appears on your site.'); ?></p></td>
     30            <p class="description"><?php _e('The name is how the tag appears on your site.'); ?></p></td>
    3131        </tr>
    3232        <tr class="form-field">
    3333            <th scope="row" valign="top"><label for="slug"><?php _e('Tag slug') ?></label></th>
    3434            <td><input name="slug" id="slug" type="text" value="<?php if ( isset( $tag->slug ) ) echo esc_attr(apply_filters('editable_slug', $tag->slug)); ?>" size="40" />
    35             <p><?php _e('The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></p></td>
     35            <p class="description"><?php _e('The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></p></td>
    3636        </tr>
    3737        <tr class="form-field">
    3838            <th scope="row" valign="top"><label for="description"><?php _e('Description') ?></label></th>
    3939            <td><textarea name="description" id="description" rows="5" cols="50" style="width: 97%;"><?php echo esc_html($tag->description); ?></textarea><br />
    40             <?php _e('The description is not prominent by default, however some themes may show it.'); ?></td>
     40            <span class="description"><?php _e('The description is not prominent by default, however some themes may show it.'); ?></span></td>
    4141        </tr>
    4242    </table>
  • trunk/wp-admin/wp-admin.css

    r11444 r11511  
    14151415
    14161416p.help,
    1417 .description,
     1417p.description,
     1418span.description,
    14181419.form-wrap p {
    14191420    font-size: 12px;
Note: See TracChangeset for help on using the changeset viewer.