Sort categories in dropdown by name rather than ID, when choosing a category parent. Props donncha. fixes #3823
git-svn-id: https://develop.svn.wordpress.org/trunk@4941 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
11d28a5c07
commit
a153fb5192
@ -35,7 +35,7 @@ if ( ! empty($cat_ID) ) {
|
||||
<tr>
|
||||
<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&selected=' . $category->category_parent . '&hierarchical=1&show_option_none=' . __('None')); ?>
|
||||
<?php wp_dropdown_categories('hide_empty=0&name=category_parent&orderby=name&selected=' . $category->category_parent . '&hierarchical=1&show_option_none=' . __('None')); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
Loading…
Reference in New Issue
Block a user