Ticket #32024: 32024.2.diff
File 32024.2.diff, 861 bytes (added by , 9 years ago) |
---|
-
src/wp-includes/class-wp.php
366 366 } elseif ( empty( $this->query_vars['feed'] ) ) { 367 367 $headers['Content-Type'] = get_option('html_type') . '; charset=' . get_option('blog_charset'); 368 368 } else { 369 // Set the correct content type for feeds 370 $type = $this->query_vars['feed']; 371 if( 'feed' == $this->query_vars['feed'] ) { 372 $type = get_default_feed(); 373 } 374 $headers['Content-Type'] = feed_content_type( $type ) . '; charset=' . get_option('blog_charset'); 375 369 376 // We're showing a feed, so WP is indeed the only thing that last changed 370 377 if ( !empty($this->query_vars['withcomments']) 371 378 || false !== strpos( $this->query_vars['feed'], 'comments-' )