From cc0dcf499206c61d14bb2cfddfd238f9cd65a9c1 Mon Sep 17 00:00:00 2001 From: rob1n Date: Fri, 25 May 2007 15:55:30 +0000 Subject: [PATCH] Fix Atom feeds' categories. fixes #4307 git-svn-id: https://develop.svn.wordpress.org/trunk@5548 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/feed.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/feed.php b/wp-includes/feed.php index 1e3c0abb44..5da62eef1e 100644 --- a/wp-includes/feed.php +++ b/wp-includes/feed.php @@ -151,13 +151,13 @@ function get_the_category_rss($type = 'rss') { $home = get_bloginfo_rss('home'); $the_list = ''; foreach ( (array) $categories as $category ) { - $category->cat_name = convert_chars($category->cat_name); + $cat_name = convert_chars($category->cat_name); if ( 'rdf' == $type ) - $the_list .= "\n\t\tcat_name]]>\n"; + $the_list .= "\n\t\t\n"; if ( 'atom' == $type ) - $the_list .= ""; + $the_list .= sprintf( '', attribute_escape( apply_filters( 'get_bloginfo_rss', get_bloginfo( 'url' ) ) ), attribute_escape( $category->cat_name ) ); else - $the_list .= "\n\t\tcat_name]]>\n"; + $the_list .= "\n\t\t\n"; } return apply_filters('the_category_rss', $the_list, $type); }