WordPress.org

Make WordPress Core

Changeset 11854


Ignore:
Timestamp:
08/20/09 20:47:02 (5 years ago)
Author:
westi
Message:

Don't offer to make a category its own parent - that just wouldn't work. Fixes #10644 props scribu.

File:
1 edited

Legend:

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

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