Changeset 6231

Show
Ignore:
Timestamp:
10/12/07 21:24:08 (1 year ago)
Author:
ryan
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.3/wp-admin/link-import.php

    r6026 r6231  
    4646<?php _e('Category:') ?> <select name="cat_id"> 
    4747<?php 
    48 $categories = get_categories('hide_empty=0'); 
     48$categories = get_terms('link_category', 'get=all'); 
    4949foreach ($categories as $category) { 
    5050?> 
    51 <option value="<?php echo $category->cat_ID; ?>"><?php echo wp_specialchars(apply_filters('link_category', $category->cat_name)); ?></option> 
     51<option value="<?php echo $category->term_id; ?>"><?php echo wp_specialchars(apply_filters('link_category', $category->name)); ?></option> 
    5252<?php 
    5353} // end foreach