From df5a935be4f3d0cfb1af258dc93e48c6abd840e8 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 26 Sep 2006 18:05:06 +0000 Subject: [PATCH] get_the_category_rss() from masquerade. git-svn-id: https://develop.svn.wordpress.org/trunk@4257 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 42dae553dc..f93a54b0a9 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() {