Better tabbing and newlining for RSS categories. Props coffee2code and Nazgul. fixes #1156

git-svn-id: https://develop.svn.wordpress.org/trunk@4342 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2006-10-04 21:46:42 +00:00
parent 3a78f217bf
commit 1861b0f8f9
1 changed files with 2 additions and 2 deletions

View File

@ -134,9 +134,9 @@ function get_the_category_rss($type = 'rss') {
foreach ($categories as $category) {
$category->cat_name = convert_chars($category->cat_name);
if ('rdf' == $type) {
$the_list .= "\n\t<dc:subject>$category->cat_name</dc:subject>";
$the_list .= "\n\t\t<dc:subject>$category->cat_name</dc:subject>\n";
} else {
$the_list .= "\n\t<category>$category->cat_name</category>";
$the_list .= "\n\t\t<category>$category->cat_name</category>\n";
}
}
return apply_filters('the_category_rss', $the_list, $type);