Make WordPress Core

Ticket #9845: 9845.patch

File 9845.patch, 3.0 KB (added by Simek, 16 years ago)
  • edit-category-form.php

     
    5050                <tr class="form-field form-required">
    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">
    6161                        <th scope="row" valign="top"><label for="category_parent"><?php _e('Category Parent') ?></label></th>
    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>
    6767                <tr class="form-field">
    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 wp_specialchars($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>
    7373<p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php esc_attr_e('Update Category'); ?>" /></p>