From 6ce6180884b1b29477e0f54c7ff154a95eadfdf5 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sat, 9 May 2015 06:38:38 +0000 Subject: [PATCH] Serve RSS feeds with the proper mime-type: `application/rss+xml`. The reason for hacking around browsers by using `text/xml` appears to no longer be relevant. Props @chriscct7. Reverts [11334] and [11358] Fixes #15110. git-svn-id: https://develop.svn.wordpress.org/trunk@32468 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/feed-rss.php | 2 +- src/wp-includes/feed-rss2-comments.php | 2 +- src/wp-includes/feed-rss2.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/feed-rss.php b/src/wp-includes/feed-rss.php index 1650434405..a355a8af40 100644 --- a/src/wp-includes/feed-rss.php +++ b/src/wp-includes/feed-rss.php @@ -5,7 +5,7 @@ * @package WordPress */ -header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true); +header('Content-Type: ' . feed_content_type('rss') . '; charset=' . get_option('blog_charset'), true); $more = 1; echo ''; ?> diff --git a/src/wp-includes/feed-rss2-comments.php b/src/wp-includes/feed-rss2-comments.php index 703fa87cfa..c8e8d498ea 100644 --- a/src/wp-includes/feed-rss2-comments.php +++ b/src/wp-includes/feed-rss2-comments.php @@ -5,7 +5,7 @@ * @package WordPress */ -header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true); +header('Content-Type: ' . feed_content_type('rss2') . '; charset=' . get_option('blog_charset'), true); echo ''; diff --git a/src/wp-includes/feed-rss2.php b/src/wp-includes/feed-rss2.php index 2390c2d957..c82fc63c56 100644 --- a/src/wp-includes/feed-rss2.php +++ b/src/wp-includes/feed-rss2.php @@ -5,7 +5,7 @@ * @package WordPress */ -header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true); +header('Content-Type: ' . feed_content_type('rss2') . '; charset=' . get_option('blog_charset'), true); $more = 1; echo '';