Silence html_entity_decode warnings. Props Denis-de-Bernardy. fixes #9616

git-svn-id: https://develop.svn.wordpress.org/trunk@11081 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2009-04-24 16:57:27 +00:00
parent f309ae3dff
commit ea6c1efcb9
5 changed files with 9 additions and 9 deletions

View File

@@ -340,7 +340,7 @@ function get_the_category_rss($type = 'rss') {
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 .= "\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);