Skip to:
Content

bbPress.org


Ignore:
Timestamp:
04/30/2016 12:07:37 AM (8 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].

(2.5 branch)
Props thebrandonallen.
Fixes #2901.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/includes/topics/functions.php

    r5692 r6021  
    34223422
    34233423    // Display the feed
    3424     header( 'Content-Type: ' . feed_content_type( 'rss-http' ) . '; charset=' . get_option( 'blog_charset' ), true );
     3424    header( 'Content-Type: ' . feed_content_type( 'rss2' ) . '; charset=' . get_option( 'blog_charset' ), true );
    34253425    header( 'Status: 200 OK' );
    34263426    echo '<?xml version="1.0" encoding="' . get_option( 'blog_charset' ) . '"?' . '>'; ?>
Note: See TracChangeset for help on using the changeset viewer.