Ticket #9810: 9810.diff

File 9810.diff, 568 bytes (added by Denis-de-Bernardy, 4 years ago)
Line 
1Index: wp-includes/feed.php
2===================================================================
3--- wp-includes/feed.php        (revision 11326)
4+++ wp-includes/feed.php        (working copy)
5@@ -523,10 +523,10 @@
6                $type = get_default_feed();
7 
8        $types = array(
9-               'rss'  => 'application/rss+xml',
10-               'rss2' => 'application/rss+xml',
11+               'rss'  => 'text/xml',
12+               'rss2' => 'text/xml',
13                'atom' => 'application/atom+xml',
14-               'rdf'  => 'application/rdf+xml',
15+               'rdf'  => 'text/xml',
16        );
17 
18        $content_type = ( !empty($types[$type]) ) ? $types[$type] : 'application/octet-stream';