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:
parent
83f88345d4
commit
52ea4aa917
|
@ -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
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue