Make WordPress Core

Ticket #36334: 36334.2.patch

File 36334.2.patch, 654 bytes (added by stevenkword, 8 years ago)

A little modification since http-rss is gone.

  • src/wp-includes/feed.php

     
    639639        $types = array(
    640640                'rss'      => 'application/rss+xml',
    641641                'rss2'     => 'application/rss+xml',
    642                 'rss-http' => 'text/xml',
    643642                'atom'     => 'application/atom+xml',
    644643                'rdf'      => 'application/rdf+xml'
    645644        );
    646645
    647         $content_type = ( !empty($types[$type]) ) ? $types[$type] : 'application/octet-stream';
     646        $content_type = ( !empty($types[$type]) ) ? $types[$type] : 'text/xml';
    648647
    649648        /**
    650649         * Filters the content type for a specific feed type.