get_the_category_rss() from masquerade.

git-svn-id: http://svn.automattic.com/wordpress/trunk@4257 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-09-26 18:05:06 +00:00
parent 8cf13570c3
commit 4e557e66b7
1 changed files with 6 additions and 2 deletions

View File

@ -128,7 +128,7 @@ function get_category_rss_link($echo = false, $cat_ID, $category_nicename) {
return $link;
}
function the_category_rss($type = 'rss') {
function get_the_category_rss($type = 'rss') {
$categories = get_the_category();
$the_list = '';
foreach ($categories as $category) {
@ -139,7 +139,11 @@ function the_category_rss($type = 'rss') {
$the_list .= "\n\t<category>$category->cat_name</category>";
}
}
echo apply_filters('the_category_rss', $the_list, $type);
return apply_filters('the_category_rss', $the_list, $type);
}
function the_category_rss($type = 'rss') {
echo get_the_category_rss($type);
}
function rss_enclosure() {