Make WordPress Core


Ignore:
Timestamp:
05/23/2007 07:15:10 AM (17 years ago)
Author:
ryan
Message:

Start moving link categories to taxonomy. see #4189

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/link-manager.php

    r5435 r5523  
    160160                    $cat_names = array();
    161161                    foreach ($link->link_category as $category) {
    162                         $cat_name = get_the_category_by_ID($category);
    163                         $cat_name = wp_specialchars(apply_filters('link_category', $cat_name));
     162                        $cat = get_term($category, 'link_category');
     163                        $cat_name = wp_specialchars(apply_filters('link_category', $cat->name));
    164164                        if ( $cat_id != $category )
    165165                            $cat_name = "<a href='link-manager.php?cat_id=$category'>$cat_name</a>";
Note: See TracChangeset for help on using the changeset viewer.