WordPress.org

Make WordPress Core

Changeset 39683


Ignore:
Timestamp:
01/05/17 03:08:14 (6 months ago)
Author:
dd32
Message:

Feeds: Don't override the Content-Type header inside fetch_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, rmccue.
Merges [39681] to the 4.7 branch.
Fixes #39066.

Location:
branches/4.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.