Make WordPress Core

Opened 16 years ago

Closed 13 years ago

Last modified 13 years ago

#16544 closed defect (bug) (invalid)

RSS2 feeds are published as text/xml rather than application/rss+xml

Reported by: Orakel78 Owned by:
Priority: normal Milestone:
Component: Feeds Version: 3.0.5
Severity: trivial Keywords:
Cc: Focuses:

Description

It seems to me that there is a bug in feed-rss.php, feed-rss2.php and feed-rss2-comments.php

All files have the following header

header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true);

Which seems to publish the feed as text/xml rather than application/rss+xml which I believe it should be.

Change History (4)

#1 @SergeyBiryukov
16 years ago

Current header was introduced in [11358] as a fix for #9810.

See also: ​The Proper Content Type for XML Feeds.

#2 @solarissmoke
16 years ago

  • Keywords close added

There is a filter on feed_content_type if you want to change this yourself - but until the issues with compatibility are resolved I don't think core will change.

#3 @c3mdigital
13 years ago

  • Resolution → invalid
  • Status new → closed

#4 @ocean90
13 years ago

  • Keywords close removed
  • Milestone Awaiting Review
Note: See TracTickets for help on using tickets.