WordPress.org

Make WordPress Core

Ticket #9810: 9810.diff

File 9810.diff, 568 bytes (added by Denis-de-Bernardy, 5 years ago)
  • wp-includes/feed.php

     
    523523                $type = get_default_feed(); 
    524524 
    525525        $types = array( 
    526                 'rss'  => 'application/rss+xml', 
    527                 'rss2' => 'application/rss+xml', 
     526                'rss'  => 'text/xml', 
     527                'rss2' => 'text/xml', 
    528528                'atom' => 'application/atom+xml', 
    529                 'rdf'  => 'application/rdf+xml', 
     529                'rdf'  => 'text/xml', 
    530530        ); 
    531531 
    532532        $content_type = ( !empty($types[$type]) ) ? $types[$type] : 'application/octet-stream';