Skip to content

Commit df5a935

Browse files
committed
get_the_category_rss() from masquerade.
git-svn-id: https://develop.svn.wordpress.org/trunk@4257 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 809a0f8 commit df5a935

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

wp-includes/feed.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function get_category_rss_link($echo = false, $cat_ID, $category_nicename) {
128128
return $link;
129129
}
130130

131-
function the_category_rss($type = 'rss') {
131+
function get_the_category_rss($type = 'rss') {
132132
$categories = get_the_category();
133133
$the_list = '';
134134
foreach ($categories as $category) {
@@ -139,7 +139,11 @@ function the_category_rss($type = 'rss') {
139139
$the_list .= "\n\t<category>$category->cat_name</category>";
140140
}
141141
}
142-
echo apply_filters('the_category_rss', $the_list, $type);
142+
return apply_filters('the_category_rss', $the_list, $type);
143+
}
144+
145+
function the_category_rss($type = 'rss') {
146+
echo get_the_category_rss($type);
143147
}
144148

145149
function rss_enclosure() {

0 commit comments

Comments
 (0)