From 33ed3723bd34ffb87838a5a44379f90692a028fb Mon Sep 17 00:00:00 2001 From: westi Date: Thu, 20 Aug 2009 20:47:02 +0000 Subject: [PATCH] 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 --- wp-admin/edit-category-form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/edit-category-form.php b/wp-admin/edit-category-form.php index 27417f6bac..66dd925385 100644 --- a/wp-admin/edit-category-form.php +++ b/wp-admin/edit-category-form.php @@ -67,7 +67,7 @@ _fill_empty_category($category); - 0, 'name' => 'category_parent', 'orderby' => 'name', 'selected' => $category->parent, 'hierarchical' => true, 'show_option_none' => __('None'))); ?>
+ 0, 'name' => 'category_parent', 'orderby' => 'name', 'selected' => $category->parent, 'exclude' => $category->term_id, 'hierarchical' => true, 'show_option_none' => __('None'))); ?>