Make WordPress Core


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

File:
1 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>
Note: See TracChangeset for help on using the changeset viewer.