Better tabbing and newlining for RSS categories. Props coffee2code and Nazgul. fixes #1156
git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@4343 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a70ccb1336
commit
a7050af4f7
|
@ -134,9 +134,9 @@ function 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";
|
||||
}
|
||||
}
|
||||
echo apply_filters('the_category_rss', $the_list, $type);
|
||||
|
|
Loading…
Reference in New Issue