Changeset 5548 for trunk/wp-includes/feed.php
- Timestamp:
- 05/25/2007 03:55:30 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/feed.php
r5134 r5548 152 152 $the_list = ''; 153 153 foreach ( (array) $categories as $category ) { 154 $cat egory->cat_name = convert_chars($category->cat_name);154 $cat_name = convert_chars($category->cat_name); 155 155 if ( 'rdf' == $type ) 156 $the_list .= "\n\t\t<dc:subject><![CDATA[$cat egory->cat_name]]></dc:subject>\n";156 $the_list .= "\n\t\t<dc:subject><![CDATA[$cat_name]]></dc:subject>\n"; 157 157 if ( 'atom' == $type ) 158 $the_list .= "<category scheme='$home' term='$category->cat_name' />";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 ) ); 159 159 else 160 $the_list .= "\n\t\t<category><![CDATA[$cat egory->cat_name]]></category>\n";160 $the_list .= "\n\t\t<category><![CDATA[$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.