From b41fc5595b701bbd11942bf52d7301a7ea831d97 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Thu, 21 Apr 2016 18:56:37 +0000 Subject: [PATCH] Feeds: Revert [36230] which removed the `rss-http` feed content type. Removing this means that any feeds which are using this feed content type are now being served as `application/octet-stream` instead of `text/xml`. See #36620 git-svn-id: https://develop.svn.wordpress.org/trunk@37282 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/feed.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/feed.php b/src/wp-includes/feed.php index feb690d8da..7b1f30c78a 100644 --- a/src/wp-includes/feed.php +++ b/src/wp-includes/feed.php @@ -630,10 +630,11 @@ function feed_content_type( $type = '' ) { $type = get_default_feed(); $types = array( - 'rss' => 'application/rss+xml', - 'rss2' => 'application/rss+xml', - 'atom' => 'application/atom+xml', - 'rdf' => 'application/rdf+xml' + 'rss' => 'application/rss+xml', + 'rss2' => 'application/rss+xml', + 'rss-http' => 'text/xml', + 'atom' => 'application/atom+xml', + 'rdf' => 'application/rdf+xml' ); $content_type = ( !empty($types[$type]) ) ? $types[$type] : 'application/octet-stream';