Introduce get_term_feed_link(). Use it in wp_list_categories(). Props blepoxp. see #13058

git-svn-id: https://develop.svn.wordpress.org/trunk@14711 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2010-05-17 16:21:12 +00:00
parent 184c9c4efa
commit 1c93bc2006
2 changed files with 45 additions and 37 deletions
+1 -1
View File
@@ -1356,7 +1356,7 @@ class Walker_Category extends Walker {
if ( empty($feed_image) )
$link .= '(';
$link .= '<a href="' . get_category_feed_link($category->term_id, $feed_type) . '"';
$link .= '<a href="' . get_term_feed_link( $category->term_id, $category->taxonomy, $feed_type ) . '"';
if ( empty($feed) )
$alt = ' alt="' . sprintf(__( 'Feed for all posts filed under %s' ), $cat_name ) . '"';