Changeset 6230

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

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

Files:

Legend:

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

    r6026 r6230  
    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