WordPress.org

Make WordPress Core

Ticket #10644: edit-category-form.patch

File edit-category-form.patch, 1.1 KB (added by scribu, 6 years ago)
  • wp-admin/edit-category-form.php

     
    6767                <tr class="form-field"> 
    6868                        <th scope="row" valign="top"><label for="category_parent"><?php _e('Category Parent') ?></label></th> 
    6969                        <td> 
    70                                 <?php wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'category_parent', 'orderby' => 'name', 'selected' => $category->parent, 'hierarchical' => true, 'show_option_none' => __('None'))); ?><br /> 
     70                                <?php wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'category_parent', 'orderby' => 'name', 'selected' => $category->parent, 'exclude' => $category->term_id, 'hierarchical' => true, 'show_option_none' => __('None'))); ?><br /> 
    7171                <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> 
    7272                        </td> 
    7373                </tr>