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

git-svn-id: http://svn.automattic.com/wordpress/trunk@13854 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
dd32
2010-03-28 02:07:31 +00:00
parent 7bafa5ee43
commit 0e4aaa13d3
2 changed files with 28 additions and 19 deletions

View File

@@ -1438,7 +1438,7 @@ class Walker_Category extends Walker {
$cat_name = esc_attr( $category->name);
$cat_name = apply_filters( 'list_cats', $cat_name, $category );
$link = '<a href="' . get_category_link( $category->term_id ) . '" ';
$link = '<a href="' . get_term_link( $category, $category->taxonomy ) . '" ';
if ( $use_desc_for_title == 0 || empty($category->description) )
$link .= 'title="' . sprintf(__( 'View all posts filed under %s' ), $cat_name) . '"';
else