Fix RDF feeds to not contain invalid tag "category". Fixed #4643 props kztk

git-svn-id: http://svn.automattic.com/wordpress/trunk@6001 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2007-09-01 08:33:08 +00:00
parent a43e37b8a1
commit 7612bc20b1
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ function get_the_category_rss($type = 'rss') {
foreach ( $cat_names as $cat_name ) {
if ( 'rdf' == $type )
$the_list .= "\n\t\t<dc:subject><![CDATA[$cat_name]]></dc:subject>\n";
if ( 'atom' == $type )
elseif ( 'atom' == $type )
$the_list .= sprintf( '<category scheme="%1$s" term="%2$s" />', attribute_escape( apply_filters( 'get_bloginfo_rss', get_bloginfo( 'url' ) ) ), attribute_escape( $cat_name ) );
else
$the_list .= "\n\t\t<category><![CDATA[$cat_name]]></category>\n";