Ticket #9810: 9810.patch
| File 9810.patch, 2.1 KB (added by , 17 years ago) |
|---|
-
feed-rss.php
5 5 * @package WordPress 6 6 */ 7 7 8 header('Content-Type: ' . feed_content_type('rss ') . '; charset=' . get_option('blog_charset'), true);8 header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true); 9 9 $more = 1; 10 10 11 11 echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?> -
feed-rss2-comments.php
5 5 * @package WordPress 6 6 */ 7 7 8 header('Content-Type: ' . feed_content_type('rss 2') . '; charset=' . get_option('blog_charset'), true);8 header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true); 9 9 10 10 echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; 11 11 ?> -
feed-rss2.php
5 5 * @package WordPress 6 6 */ 7 7 8 header('Content-Type: ' . feed_content_type('rss 2') . '; charset=' . get_option('blog_charset'), true);8 header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true); 9 9 $more = 1; 10 10 11 11 echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?> -
feed.php
523 523 $type = get_default_feed(); 524 524 525 525 $types = array( 526 'rss' => 'text/xml', 527 'rss2' => 'text/xml', 526 'rss' => 'application/rss+xml', 527 'rss2' => 'application/rss+xml', 528 'rss-http' => 'text/xml', 528 529 'atom' => 'application/atom+xml', 529 'rdf' => 'application/rdf+xml' ,530 'rdf' => 'application/rdf+xml' 530 531 ); 531 532 532 533 $content_type = ( !empty($types[$type]) ) ? $types[$type] : 'application/octet-stream';