Don't offer to make a category its own parent - that just wouldn't work. Fixes #10644 props scribu.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11854 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
15d31d9644
commit
33ed3723bd
|
@ -67,7 +67,7 @@ _fill_empty_category($category);
|
||||||
<tr class="form-field">
|
<tr class="form-field">
|
||||||
<th scope="row" valign="top"><label for="category_parent"><?php _e('Category Parent') ?></label></th>
|
<th scope="row" valign="top"><label for="category_parent"><?php _e('Category Parent') ?></label></th>
|
||||||
<td>
|
<td>
|
||||||
<?php wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'category_parent', 'orderby' => 'name', 'selected' => $category->parent, 'hierarchical' => true, 'show_option_none' => __('None'))); ?><br />
|
<?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 />
|
||||||
<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>
|
<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>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Reference in New Issue