From dd95276c66a5c6ae6a666cd814534a0af8176b1d Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Mon, 22 Dec 2003 00:32:05 +0000 Subject: [PATCH] Multiple category support for RDF. git-svn-id: https://develop.svn.wordpress.org/trunk@634 602fd350-edb4-49c9-b593-d223f7449a82 --- 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:) - +