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
This commit is contained in:
parent
f46c926a06
commit
c1a68e5c0f
@ -37,7 +37,7 @@ if ( ! empty($cat_ID) ) {
|
||||
<tr class="form-field">
|
||||
<th scope="row" valign="top"><label for="category_parent"><?php _e('Category Parent') ?></label></th>
|
||||
<td>
|
||||
<?php wp_dropdown_categories('hide_empty=0&name=category_parent&orderby=name&selected=' . $category->parent . '&hierarchical=1&show_option_none=' . __('None')); ?><br />
|
||||
<?php wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'category_parent', 'orderby' => 'name', 'selected' => $category->parent, 'hierarchical' => true, 'show_option_none' => __('None'))); ?><br />
|
||||
<?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.'); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
Loading…
Reference in New Issue
Block a user