Make WordPress Core

Opened 14 years ago

Closed 11 years ago

Last modified 11 years ago

#16544 closed defect (bug) (invalid)

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

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

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
14 years ago

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

See also: The Proper Content Type for XML Feeds.

#2 @solarissmoke
14 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
11 years ago

  • Resolution set to invalid
  • Status changed from new to closed

#4 @ocean90
11 years ago

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