From cd81760da2565206ef199cab78c36096e5e762d9 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 17 Jun 2008 05:45:21 +0000 Subject: [PATCH] Make the args for the category drop down query the same as the category table query so that the cache is used. Eliminates a query. see #7147 git-svn-id: http://svn.automattic.com/wordpress/trunk@8112 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 8f62e3a993..f32cfd4fda 100644 --- a/wp-admin/edit-category-form.php +++ b/wp-admin/edit-category-form.php @@ -37,7 +37,7 @@ if ( ! empty($cat_ID) ) { - parent . '&hierarchical=1&show_option_none=' . __('None')); ?>
+ 0, 'name' => 'category_parent', 'orderby' => 'name', 'selected' => $category->parent, 'hierarchical' => true, 'show_option_none' => __('None'))); ?>