WordPress.org

Make WordPress Core

Ticket #24444: feed.diff

File feed.diff, 775 bytes (added by ejdanderson, 11 months ago)

replace get_bloginfo with get_bloginfo_rss

  • wp-includes/feed.php

     
    324324                if ( 'rdf' == $type ) 
    325325                        $the_list .= "\t\t<dc:subject><![CDATA[$cat_name]]></dc:subject>\n"; 
    326326                elseif ( 'atom' == $type ) 
    327                         $the_list .= sprintf( '<category scheme="%1$s" term="%2$s" />', esc_attr( apply_filters( 'get_bloginfo_rss', get_bloginfo( 'url' ) ) ), esc_attr( $cat_name ) ); 
     327                        $the_list .= sprintf( '<category scheme="%1$s" term="%2$s" />', esc_attr( get_bloginfo_rss( 'url' ) ), esc_attr( $cat_name ) ); 
    328328                else 
    329329                        $the_list .= "\t\t<category><![CDATA[" . @html_entity_decode( $cat_name, ENT_COMPAT, get_option('blog_charset') ) . "]]></category>\n"; 
    330330        }