Skip to:
Content

bbPress.org

Changeset 5969


Ignore:
Timestamp:
01/10/2016 03:25:55 AM (7 years ago)
Author:
netweb
Message:

API - Feeds: Use feed_content_type( 'rss2' ) for RSS feeds.

This changeset updates the RSS 2 native mime type application/rss+xml, previously rss-http used text/xml which was removed from WordPress in [WP36230] and [WP32468].

Props thebrandonallen.
Fixes #2901.

Location:
trunk/src/includes
Files:
2 edited

Legend:

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

    r5951 r5969  
    21962196
    21972197    // Display the feed
    2198     header( 'Content-Type: ' . feed_content_type( 'rss-http' ) . '; charset=' . get_option( 'blog_charset' ), true );
     2198    header( 'Content-Type: ' . feed_content_type( 'rss2' ) . '; charset=' . get_option( 'blog_charset' ), true );
    21992199    header( 'Status: 200 OK' );
    22002200    echo '<?xml version="1.0" encoding="' . get_option( 'blog_charset' ) . '"?' . '>'; ?>
  • trunk/src/includes/topics/functions.php

    r5951 r5969  
    37813781
    37823782    // Display the feed
    3783     header( 'Content-Type: ' . feed_content_type( 'rss-http' ) . '; charset=' . get_option( 'blog_charset' ), true );
     3783    header( 'Content-Type: ' . feed_content_type( 'rss2' ) . '; charset=' . get_option( 'blog_charset' ), true );
    37843784    header( 'Status: 200 OK' );
    37853785    echo '<?xml version="1.0" encoding="' . get_option( 'blog_charset' ) . '"?' . '>'; ?>
Note: See TracChangeset for help on using the changeset viewer.