Sort categories in dropdown by name rather than ID, when choosing a category parent. Props donncha. fixes #3823
git-svn-id: http://svn.automattic.com/wordpress/trunk@4941 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5fde2708cf
commit
5a2ec38abb
|
@ -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