mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-18 04:25:07 +00:00
When $type
is atom
in get_the_category_rss()
, use get_bloginfo_rss( 'url' )
when setting the scheme
attribute for the <category>
node.
Props ejdanderson. Fixes #24444. Built from https://develop.svn.wordpress.org/trunk@28258 git-svn-id: http://core.svn.wordpress.org/trunk@28086 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5e7ac8de94
commit
511145b418
@ -390,7 +390,7 @@ function get_the_category_rss($type = null) {
|
|||||||
$the_list .= "\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 )
|
||||||
/** This filter is documented in wp-includes/feed.php */
|
/** This filter is documented in wp-includes/feed.php */
|
||||||
$the_list .= sprintf( '<category scheme="%1$s" term="%2$s" />', esc_attr( apply_filters( 'get_bloginfo_rss', get_bloginfo( 'url' ) ) ), esc_attr( $cat_name ) );
|
$the_list .= sprintf( '<category scheme="%1$s" term="%2$s" />', esc_attr( get_bloginfo_rss( 'url' ) ), esc_attr( $cat_name ) );
|
||||||
else
|
else
|
||||||
$the_list .= "\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";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user