Make WordPress Core

Ticket #32024: 32024.diff

File 32024.diff, 681 bytes (added by stevenkword, 9 years ago)

Adds content-type field to request headers

  • src/wp-includes/class-wp.php

     
    366366                } elseif ( empty( $this->query_vars['feed'] ) ) {
    367367                        $headers['Content-Type'] = get_option('html_type') . '; charset=' . get_option('blog_charset');
    368368                } else {
     369                        $headers['Content-Type'] = feed_content_type() . '; charset=' . get_option('blog_charset');
     370
    369371                        // We're showing a feed, so WP is indeed the only thing that last changed
    370372                        if ( !empty($this->query_vars['withcomments'])
    371373                                || false !== strpos( $this->query_vars['feed'], 'comments-' )