[wp-trac] [WordPress Trac] #39066: `fetch_feed()` changes REST API response `Content-Type`

WordPress Trac noreply at wordpress.org
Thu Jan 5 01:28:35 UTC 2017


#39066: `fetch_feed()` changes REST API response `Content-Type`
------------------------------+------------------------
 Reporter:  dlh               |       Owner:  rmccue
     Type:  defect (bug)      |      Status:  reviewing
 Priority:  normal            |   Milestone:  4.7.1
Component:  Feeds             |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:  rest-api
------------------------------+------------------------
Changes (by rmccue):

 * keywords:  has-patch => has-patch commit


Comment:

 Replying to [comment:5 stevenkword]:
 > However, I am questioning whether it is okay to force the character set
 from a 3rd party to the same one used by the WP instance.

 This already happens (and has done so since we originally added SimplePie,
 I think) with the `set_output_encoding` call. Internally, SimplePie uses
 mbstring/iconv to handle encodings, so I don't forsee any issues with it
 really.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39066#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list