From 70b9f6e5ed504662eda0a77617f1a8d6ac8f8fbe Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 8 Nov 2006 06:57:26 +0000 Subject: [PATCH] Wrap cat name in CDATA. props alexkingorg. fixes #3252 git-svn-id: http://svn.automattic.com/wordpress/trunk@4454 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/feed.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/feed.php b/wp-includes/feed.php index c6c2475d7..ebeb37687 100644 --- a/wp-includes/feed.php +++ b/wp-includes/feed.php @@ -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$category->cat_name\n"; + $the_list .= "\n\t\tcat_name]]>\n"; else - $the_list .= "\n\t\t$category->cat_name\n"; + $the_list .= "\n\t\tcat_name]]>\n"; } return apply_filters('the_category_rss', $the_list, $type); }