Changeset 6001

Show
Ignore:
Timestamp:
09/01/07 08:33:08 (1 year ago)
Author:
westi
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/feed.php

    r6000 r6001  
    169169        if ( 'rdf' == $type ) 
    170170            $the_list .= "\n\t\t<dc:subject><![CDATA[$cat_name]]></dc:subject>\n"; 
    171         if ( 'atom' == $type ) 
     171        elseif ( 'atom' == $type ) 
    172172            $the_list .= sprintf( '<category scheme="%1$s" term="%2$s" />', attribute_escape( apply_filters( 'get_bloginfo_rss', get_bloginfo( 'url' ) ) ), attribute_escape( $cat_name ) ); 
    173173        else