WordPress.org

Make WordPress Core

Ticket #9689: 9689.patch

File 9689.patch, 683 bytes (added by hakre, 6 years ago)

Missing Content Type added to SimplePie locator

  • wp-includes/class-simplepie.php

     
    1285712857                { 
    1285812858                        $sniffer = new $this->content_type_sniffer_class($file); 
    1285912859                        $sniffed = $sniffer->get_type(); 
    12860                         if (in_array($sniffed, array('application/rss+xml', 'application/rdf+xml', 'text/rdf', 'application/atom+xml', 'text/xml', 'application/xml'))) 
     12860                        if (in_array($sniffed, array('application/rss+xml', 'application/rdf+xml', 'text/rdf', 'application/atom+xml', 'text/xml', 'application/xml', 'text/plain'))) 
    1286112861                        { 
    1286212862                                return true; 
    1286312863                        }