WordPress.org

Make WordPress Core

Changeset 39681


Ignore:
Timestamp:
01/05/17 03:05:53 (6 months ago)
Author:
rmccue
Message:

Feeds: Don't override the Content-Type header inside fetc_feed()

SimplePie can set the Content-Type header automatically with the correct charset for convenience, but we already force the charset to match the site's, making it redundant at best. At worst, SimplePie incorrectly overrides the content-type for non-HTML content (such as API requests).

Props dlh, stevenkword.
Fixes #39066.

File:
1 edited

Legend:

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

    r38883 r39681  
    703703    $feed->init(); 
    704704    $feed->set_output_encoding( get_option( 'blog_charset' ) ); 
    705     $feed->handle_content_type(); 
    706705 
    707706    if ( $feed->error() ) 
Note: See TracChangeset for help on using the changeset viewer.