Fix category assigment during link import. fixes #5107 for 2.3

git-svn-id: http://svn.automattic.com/wordpress/branches/2.3@6231 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-10-12 21:24:08 +00:00
parent 83f88345d4
commit 52ea4aa917
1 changed files with 2 additions and 2 deletions

View File

@ -45,10 +45,10 @@ switch ($step) {
<p style="clear: both; margin-top: 1em;"><?php _e('Now select a category you want to put these links in.') ?><br />
<?php _e('Category:') ?> <select name="cat_id">
<?php
$categories = get_categories('hide_empty=0');
$categories = get_terms('link_category', 'get=all');
foreach ($categories as $category) {
?>
<option value="<?php echo $category->cat_ID; ?>"><?php echo wp_specialchars(apply_filters('link_category', $category->cat_name)); ?></option>
<option value="<?php echo $category->term_id; ?>"><?php echo wp_specialchars(apply_filters('link_category', $category->name)); ?></option>
<?php
} // end foreach
?>