Ue get_default_feed() for *_the_category_rss(). Props filosofo, peaceablewhale. fixes #5802

git-svn-id: http://svn.automattic.com/wordpress/trunk@12197 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-11-17 16:27:36 +00:00
parent d1f60c88f0
commit 28723e1d9f
1 changed files with 6 additions and 4 deletions

View File

@ -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);
}