Pass blog charset to html_entity_decode(). Props adferguson. fixes #7563

git-svn-id: https://develop.svn.wordpress.org/trunk@10688 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2009-03-03 18:37:25 +00:00
parent b68fd0794e
commit 91e3bd9358
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -1505,7 +1505,7 @@ function wp_widget_rss($args, $widget_args = 1) {
$link = clean_url(strip_tags($rss->get_permalink()));
while ( strstr($link, 'http') != $link )
$link = substr($link, 1);
$desc = attribute_escape(strip_tags(html_entity_decode($rss->get_description(), ENT_QUOTES)));
$desc = attribute_escape(strip_tags(html_entity_decode($rss->get_description(), ENT_QUOTES, get_option('blog_charset'))));
$title = $options[$number]['title'];
if ( empty($title) )
$title = htmlentities(strip_tags($rss->get_title()));
@@ -1575,7 +1575,7 @@ function wp_widget_rss_output( $rss, $args = array() ) {
if ( empty($title) )
$title = __('Untitled');
$desc = str_replace(array("\n", "\r"), ' ', attribute_escape(strip_tags(html_entity_decode($item->get_description(), ENT_QUOTES))));
$desc = str_replace(array("\n", "\r"), ' ', attribute_escape(strip_tags(html_entity_decode($item->get_description(), ENT_QUOTES, get_option('blog_charset')))));
$desc = wp_html_excerpt( $desc, 360 ) . ' […]';
$desc = wp_specialchars( $desc );