mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Remove leading newlines. Props filosofo. fixes #9096
git-svn-id: http://svn.automattic.com/wordpress/trunk@10758 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a4963d5ff4
commit
c1e2c5a074
@ -336,11 +336,11 @@ function get_the_category_rss($type = 'rss') {
|
|||||||
|
|
||||||
foreach ( $cat_names as $cat_name ) {
|
foreach ( $cat_names as $cat_name ) {
|
||||||
if ( 'rdf' == $type )
|
if ( 'rdf' == $type )
|
||||||
$the_list .= "\n\t\t<dc:subject><![CDATA[$cat_name]]></dc:subject>\n";
|
$the_list .= "\t\t<dc:subject><![CDATA[$cat_name]]></dc:subject>\n";
|
||||||
elseif ( '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 ) );
|
$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
|
else
|
||||||
$the_list .= "\n\t\t<category><![CDATA[" . html_entity_decode( $cat_name, ENT_COMPAT, get_option('blog_charset') ) . "]]></category>\n";
|
$the_list .= "\t\t<category><![CDATA[" . html_entity_decode( $cat_name, ENT_COMPAT, get_option('blog_charset') ) . "]]></category>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
return apply_filters('the_category_rss', $the_list, $type);
|
return apply_filters('the_category_rss', $the_list, $type);
|
||||||
|
Loading…
Reference in New Issue
Block a user