WordPress.org

Make WordPress Core

Changeset 32469


Ignore:
Timestamp:
05/09/2015 06:48:45 AM (5 years ago)
Author:
wonderboymusic
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/feed.php

    r32161 r32469  
    643643    do_action_ref_array( 'wp_feed_options', array( &$feed, $url ) );
    644644    $feed->init();
     645    $feed->set_output_encoding( get_option( 'blog_charset' ) );
    645646    $feed->handle_content_type();
    646647
Note: See TracChangeset for help on using the changeset viewer.