From 6266cbaf3b9738273dc56c5bde5f7d3e50c3a10d Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 17 Nov 2009 16:27:36 +0000 Subject: [PATCH] Ue get_default_feed() for *_the_category_rss(). Props filosofo, peaceablewhale. fixes #5802 git-svn-id: https://develop.svn.wordpress.org/trunk@12197 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/feed.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/wp-includes/feed.php b/wp-includes/feed.php index 7598695062..ebd392b116 100644 --- a/wp-includes/feed.php +++ b/wp-includes/feed.php @@ -283,10 +283,12 @@ function comment_text_rss() { * @since 2.1.0 * @uses apply_filters() * - * @param string $type Optional, default is 'rss'. Either 'rss', 'atom', or 'rdf'. + * @param string $type Optional, default is the type returned by get_default_feed(). * @return string All of the post categories for displaying in the feed. */ -function get_the_category_rss($type = 'rss') { +function get_the_category_rss($type = null) { + if ( empty($type) ) + $type = get_default_feed(); $categories = get_the_category(); $tags = get_the_tags(); $the_list = ''; @@ -326,9 +328,9 @@ function get_the_category_rss($type = 'rss') { * @since 0.71 * @see get_the_category_rss() For better explanation. * - * @param string $type Optional, default is 'rss'. Either 'rss', 'atom', or 'rdf'. + * @param string $type Optional, default is the type returned by get_default_feed(). */ -function the_category_rss($type = 'rss') { +function the_category_rss($type = null) { echo get_the_category_rss($type); }