Skip to:
Content

bbPress.org

Changeset 4839


Ignore:
Timestamp:
04/10/2013 04:28:30 AM (12 years ago)
Author:
johnjamesjacoby
Message:

Use feed_content_type() in feeds. See #2292.

Location:
trunk/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/replies/functions.php

    r4837 r4839  
    18351835
    18361836    // Display the feed
    1837     header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ), true );
     1837    header( 'Content-Type: ' . feed_content_type( 'rss-http' ) . '; charset=' . get_option( 'blog_charset' ), true );
    18381838    header( 'Status: 200 OK' );
    18391839    echo '<?xml version="1.0" encoding="' . get_option( 'blog_charset' ) . '"?' . '>'; ?>
  • trunk/includes/topics/functions.php

    r4837 r4839  
    33143314
    33153315    // Display the feed
    3316     header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ), true );
     3316    header( 'Content-Type: ' . feed_content_type( 'rss-http' ) . '; charset=' . get_option( 'blog_charset' ), true );
    33173317    header( 'Status: 200 OK' );
    33183318    echo '<?xml version="1.0" encoding="' . get_option( 'blog_charset' ) . '"?' . '>'; ?>
Note: See TracChangeset for help on using the changeset viewer.