Wrap cat name in CDATA. props alexkingorg. fixes #3252

git-svn-id: http://svn.automattic.com/wordpress/trunk@4454 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-11-08 06:57:26 +00:00
parent a25c8cb077
commit 70b9f6e5ed
1 changed files with 2 additions and 2 deletions

View File

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