Make WordPress Core

Changeset 4941


Ignore:
Timestamp:
02/25/2007 01:41:38 PM (18 years ago)
Author:
markjaquith
Message:

Sort categories in dropdown by name rather than ID, when choosing a category parent. Props donncha. fixes #3823

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-category-form.php

    r4656 r4941  
    3636            <th scope="row" valign="top"><label for="category_parent"><?php _e('Category parent:') ?></label></th>
    3737            <td>       
    38                 <?php wp_dropdown_categories('hide_empty=0&name=category_parent&selected=' . $category->category_parent . '&hierarchical=1&show_option_none=' . __('None')); ?>
     38                <?php wp_dropdown_categories('hide_empty=0&name=category_parent&orderby=name&selected=' . $category->category_parent . '&hierarchical=1&show_option_none=' . __('None')); ?>
    3939            </td>
    4040        </tr>
Note: See TracChangeset for help on using the changeset viewer.