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

git-svn-id: https://develop.svn.wordpress.org/trunk@13854 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse
2010-03-28 02:07:31 +00:00
parent 65b33d2608
commit c23d49d135
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