Make WordPress Core

Changeset 6231


Ignore:
Timestamp:
10/12/2007 09:24:08 PM (17 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.