Make WordPress Core


Ignore:
Timestamp:
09/01/2006 08:38:24 PM (19 years ago)
Author:
ryan
Message:

Use wp_dropdown_categories(). Fix padding. Don't allow a cat to be it's own parent. Props westi. fixes #3088

File:
1 edited

Legend:

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

    r3804 r4156  
    3333            <th scope="row" valign="top"><label for="category_parent"><?php _e('Category parent:') ?></label></th>
    3434            <td>       
    35             <select name='category_parent' id='category_parent'>
    36       <option value='0' <?php if (!$category->category_parent) echo " selected='selected'"; ?>><?php _e('None') ?></option>
    37       <?php wp_dropdown_cats($category->cat_ID, $category->category_parent); ?>
    38       </select></td>
     35                <?php wp_dropdown_categories('hide_empty=0&name=category_parent&selected=' . $category->category_parent . '&hierarchical=1&show_option_none=' . __('None')); ?>
     36            </td>
    3937        </tr>
    4038        <tr>
Note: See TracChangeset for help on using the changeset viewer.