From e7d9eda799d3559b9f05802ef25779af260f5016 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sat, 9 May 2015 06:48:45 +0000 Subject: [PATCH] In `fetch_feed()`, call `->set_output_encoding()` on the `SimplePie` instance to ensure the feed is served with encoding specified by the `blog_charset` option. Props chriscct7. Fixes #10713. git-svn-id: https://develop.svn.wordpress.org/trunk@32469 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/feed.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-includes/feed.php b/src/wp-includes/feed.php index 8638554146..a59fc5f50e 100644 --- a/src/wp-includes/feed.php +++ b/src/wp-includes/feed.php @@ -642,6 +642,7 @@ function fetch_feed( $url ) { */ do_action_ref_array( 'wp_feed_options', array( &$feed, $url ) ); $feed->init(); + $feed->set_output_encoding( get_option( 'blog_charset' ) ); $feed->handle_content_type(); if ( $feed->error() )