Make WordPress Core

Changeset 8112


Ignore:
Timestamp:
06/17/2008 05:45:21 AM (16 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

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

    r7896 r8112  
    3838            <th scope="row" valign="top"><label for="category_parent"><?php _e('Category Parent') ?></label></th>
    3939            <td>
    40                 <?php wp_dropdown_categories('hide_empty=0&name=category_parent&orderby=name&selected=' . $category->parent . '&hierarchical=1&show_option_none=' . __('None')); ?><br />
     40                <?php wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'category_parent', 'orderby' => 'name', 'selected' => $category->parent, 'hierarchical' => true, 'show_option_none' => __('None'))); ?><br />
    4141                <?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.'); ?>
    4242            </td>
Note: See TracChangeset for help on using the changeset viewer.