Make WordPress Core

Changeset 11358


Ignore:
Timestamp:
05/16/2009 05:15:21 AM (15 years ago)
Author:
ryan
Message:

Fix feed autodiscovery. Props peaceablewhale. fixes #9810

Location:
trunk/wp-includes
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/feed-rss.php

    r10952 r11358  
    66 */
    77
    8 header('Content-Type: ' . feed_content_type('rss') . '; charset=' . get_option('blog_charset'), true);
     8header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true);
    99$more = 1;
    1010
  • trunk/wp-includes/feed-rss2-comments.php

    r11323 r11358  
    66 */
    77
    8 header('Content-Type: ' . feed_content_type('rss2') . '; charset=' . get_option('blog_charset'), true);
     8header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true);
    99
    1010echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>';
  • trunk/wp-includes/feed-rss2.php

    r11272 r11358  
    66 */
    77
    8 header('Content-Type: ' . feed_content_type('rss2') . '; charset=' . get_option('blog_charset'), true);
     8header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true);
    99$more = 1;
    1010
  • trunk/wp-includes/feed.php

    r11334 r11358  
    524524
    525525    $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',
    528529        'atom' => 'application/atom+xml',
    529         'rdf'  => 'application/rdf+xml',
     530        'rdf'  => 'application/rdf+xml'
    530531    );
    531532
Note: See TracChangeset for help on using the changeset viewer.