Make WordPress Core


Ignore:
Timestamp:
03/28/2010 02:07:31 AM (14 years ago)
Author:
dd32
Message:

Update wp_list_categories() to be custom taxonomy aware. Props jfarthing84. See #11838

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/classes.php

    r13830 r13854  
    14391439        $cat_name = esc_attr( $category->name);
    14401440        $cat_name = apply_filters( 'list_cats', $cat_name, $category );
    1441         $link = '<a href="' . get_category_link( $category->term_id ) . '" ';
     1441        $link = '<a href="' . get_term_link( $category, $category->taxonomy ) . '" ';
    14421442        if ( $use_desc_for_title == 0 || empty($category->description) )
    14431443            $link .= 'title="' . sprintf(__( 'View all posts filed under %s' ), $cat_name) . '"';
Note: See TracChangeset for help on using the changeset viewer.