[wp-trac] [WordPress Trac] #32024: XML Feed has wrong 'Content-Type'

WordPress Trac noreply at wordpress.org
Mon Aug 10 17:35:41 UTC 2015


#32024: XML Feed has wrong 'Content-Type'
--------------------------+------------------------------
 Reporter:  pvdl          |       Owner:  stevenkword
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Feeds         |     Version:  3.5
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------
Changes (by stevenkword):

 * keywords:   => has-patch
 * owner:   => stevenkword
 * status:  new => assigned


Comment:

 Previously, the `Content-Type` was defaulting to text/html for all feeds
 as a fallback for when the field was not explicitly specified.
 [attachment:32024.diff] adds a new field to the $headers array found in
 the `send_headers` method which will properly set the Content Type for all
 feed Request Headers in addition to the HTML headers manually set in each
 individual feed template.

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


More information about the wp-trac mailing list