mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-23 06:44:31 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user