From 4e557e66b700d1ff9b093cd9e691107a8c82d816 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 26 Sep 2006 18:05:06 +0000 Subject: [PATCH] get_the_category_rss() from masquerade. git-svn-id: http://svn.automattic.com/wordpress/trunk@4257 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/feed.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/wp-includes/feed.php b/wp-includes/feed.php index 42dae553d..f93a54b0a 100644 --- a/wp-includes/feed.php +++ b/wp-includes/feed.php @@ -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->cat_name"; } } - 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() {