WordPress.org

Make WordPress Core

Ticket #10713: 10713.2.diff

File 10713.2.diff, 514 bytes (added by SergeyBiryukov, 5 years ago)

With proper formatting

  • wp-includes/feed.php

     
    540540        $feed->set_cache_duration( apply_filters( 'wp_feed_cache_transient_lifetime', 12 * HOUR_IN_SECONDS, $url ) );
    541541        do_action_ref_array( 'wp_feed_options', array( &$feed, $url ) );
    542542        $feed->init();
     543        $feed->set_output_encoding( get_option( 'blog_charset' ) );
    543544        $feed->handle_content_type();
    544545
    545546        if ( $feed->error() )