From c1a68e5c0f8f58579c0ee90abaf3a35152cb2ae7 Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@8112 602fd350-edb4-49c9-b593-d223f7449a82 --- 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'))); ?>