Changes from branches/2.2/wp-includes/feed.php at r5548 to trunk/wp-includes/feed.php at r5134
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/feed.php
r5548 r5134 152 152 $the_list = ''; 153 153 foreach ( (array) $categories as $category ) { 154 $cat _name = convert_chars($category->cat_name);154 $category->cat_name = convert_chars($category->cat_name); 155 155 if ( 'rdf' == $type ) 156 $the_list .= "\n\t\t<dc:subject><![CDATA[$cat _name]]></dc:subject>\n";156 $the_list .= "\n\t\t<dc:subject><![CDATA[$category->cat_name]]></dc:subject>\n"; 157 157 if ( 'atom' == $type ) 158 $the_list .= sprintf( '<category scheme="%1$s" term="%2$s" />', attribute_escape( apply_filters( 'get_bloginfo_rss', get_bloginfo( 'url' ) ) ), attribute_escape( $category->cat_name ) );158 $the_list .= "<category scheme='$home' term='$category->cat_name' />"; 159 159 else 160 $the_list .= "\n\t\t<category><![CDATA[$cat _name]]></category>\n";160 $the_list .= "\n\t\t<category><![CDATA[$category->cat_name]]></category>\n"; 161 161 } 162 162 return apply_filters('the_category_rss', $the_list, $type);
Note: See TracChangeset
for help on using the changeset viewer.