From c3d03c529d29c5104b133e54357a9d239aae35ac Mon Sep 17 00:00:00 2001 From: saxmatt Date: Mon, 22 Dec 2003 00:32:05 +0000 Subject: [PATCH] Multiple category support for RDF. git-svn-id: http://svn.automattic.com/wordpress/trunk@634 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/template-functions.php | 8 ++++++-- wp-rdf.php | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/wp-includes/template-functions.php b/wp-includes/template-functions.php index 191fdcf514..3ebec66a98 100644 --- a/wp-includes/template-functions.php +++ b/wp-includes/template-functions.php @@ -1272,11 +1272,15 @@ function the_category($seperator = '') { } } -function the_category_rss() { +function the_category_rss($type = 'rss') { $categories = get_the_category(); foreach ($categories as $category) { $category->cat_name = stripslashes(convert_chars($category->cat_name)); - echo "\n$category->cat_name"; + if ('rdf' == $type) { + echo "\n$category->cat_name"; + } else { + echo "\n$category->cat_name"; + } } } diff --git a/wp-rdf.php b/wp-rdf.php index 9574b29379..0e153964db 100644 --- a/wp-rdf.php +++ b/wp-rdf.php @@ -55,7 +55,7 @@ if (!isset($rss_language)) { $rss_language = 'en'; } (mailto:) - +