Ticket #39066: 39066.2.diff
File 39066.2.diff, 746 bytes (added by , 8 years ago) |
---|
-
src/wp-includes/feed.php
702 702 do_action_ref_array( 'wp_feed_options', array( &$feed, $url ) ); 703 703 $feed->init(); 704 704 $feed->set_output_encoding( get_option( 'blog_charset' ) ); 705 $feed->handle_content_type();706 705 706 // Don't change response headers if this is a REST, Ajax, or XMLRPC request. 707 if ( 708 ( ! defined( 'REST_REQUEST' ) || ! REST_REQUEST ) 709 && ( ! defined( 'XMLRPC_REQUEST' ) || ! XMLRPC_REQUEST ) 710 && ! wp_doing_ajax() 711 ) { 712 $feed->handle_content_type(); 713 } 714 707 715 if ( $feed->error() ) 708 716 return new WP_Error( 'simplepie-error', $feed->error() ); 709 717