Skip to:
Content

bbPress.org

Changeset 6021


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

Location:
branches/2.5/includes
Files:
2 edited

Legend:

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

    r5692 r6021  
    13971397
    13981398    // Remove reply_to from moved reply
    1399     delete_post_meta( $move_reply->ID, '_bbp_reply_to' ); 
     1399    delete_post_meta( $move_reply->ID, '_bbp_reply_to' );
    14001400
    14011401    // It is a new topic and we need to set some default metas to make
     
    19951995
    19961996    // Display the feed
    1997     header( 'Content-Type: ' . feed_content_type( 'rss-http' ) . '; charset=' . get_option( 'blog_charset' ), true );
     1997    header( 'Content-Type: ' . feed_content_type( 'rss2' ) . '; charset=' . get_option( 'blog_charset' ), true );
    19981998    header( 'Status: 200 OK' );
    19991999    echo '<?xml version="1.0" encoding="' . get_option( 'blog_charset' ) . '"?' . '>'; ?>
     
    22222222/**
    22232223 * Validate a `reply_to` field for hierarchical replies
    2224  * 
     2224 *
    22252225 * Checks for 2 scenarios:
    22262226 * -- The reply to ID is actually a reply
  • 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.