Make WordPress Core


Ignore:
Timestamp:
11/20/2013 10:57:09 PM (11 years ago)
Author:
nacin
Message:

Add an experimental rssjs feed based on the experimental rss.js spec.

This is simply a JSON representation of the RSS 2.0 feed, accessible at /feed/rssjs/ anywhere.

props pento.
see #25639.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r26235 r26294  
    10811081    else
    10821082        load_template( ABSPATH . WPINC . '/feed-atom.php' );
     1083}
     1084
     1085/**
     1086 * Load either rssjs comment feed or rssjs posts feed.
     1087 *
     1088 * @since 3.8.0
     1089 *
     1090 * @param bool $for_comments True for the comment feed, false for normal feed.
     1091 */
     1092function do_feed_rssjs( $for_comments ) {
     1093    if ( $for_comments ) {
     1094        load_template( ABSPATH . WPINC . '/feed-rssjs-comments.php' );
     1095    } else {
     1096        load_template( ABSPATH . WPINC . '/feed-rssjs.php' );
     1097    }
    10831098}
    10841099
Note: See TracChangeset for help on using the changeset viewer.