WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 9 months ago

Last modified 8 months ago

#16544 closed defect (bug) (invalid)

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

Reported by: 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)

comment:1 SergeyBiryukov3 years ago

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

See also: The Proper Content Type for XML Feeds.

comment:2 solarissmoke3 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.

comment:3 c3mdigital9 months ago

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

comment:4 ocean908 months ago

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