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
This commit is contained in:
parent
6ce6180884
commit
e7d9eda799
@ -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() )
|
||||
|
Loading…
Reference in New Issue
Block a user