Make WordPress Core

Changeset 26294


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.

Location:
trunk/src/wp-includes
Files:
2 added
6 edited

Legend:

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

    r26006 r26294  
    1616     * @var array
    1717     */
    18     var $public_query_vars = array('m', 'p', 'posts', 'w', 'cat', 'withcomments', 'withoutcomments', 's', 'search', 'exact', 'sentence', 'calendar', 'page', 'paged', 'more', 'tb', 'pb', 'author', 'order', 'orderby', 'year', 'monthnum', 'day', 'hour', 'minute', 'second', 'name', 'category_name', 'tag', 'feed', 'author_name', 'static', 'pagename', 'page_id', 'error', 'comments_popup', 'attachment', 'attachment_id', 'subpost', 'subpost_id', 'preview', 'robots', 'taxonomy', 'term', 'cpage', 'post_type');
     18    var $public_query_vars = array('m', 'p', 'posts', 'w', 'cat', 'withcomments', 'withoutcomments', 's', 'search', 'exact', 'sentence', 'calendar', 'page', 'paged', 'more', 'tb', 'pb', 'author', 'order', 'orderby', 'year', 'monthnum', 'day', 'hour', 'minute', 'second', 'name', 'category_name', 'tag', 'feed', 'author_name', 'static', 'pagename', 'page_id', 'error', 'comments_popup', 'attachment', 'attachment_id', 'subpost', 'subpost_id', 'preview', 'robots', 'taxonomy', 'term', 'cpage', 'post_type', 'callback');
    1919
    2020    /**
  • trunk/src/wp-includes/default-filters.php

    r25163 r26294  
    238238add_action( 'do_feed_rss2',               'do_feed_rss2',                            10, 1 );
    239239add_action( 'do_feed_atom',               'do_feed_atom',                            10, 1 );
     240add_action( 'do_feed_rssjs',              'do_feed_rssjs',                           10, 1 );
    240241add_action( 'do_pings',                   'do_all_pings',                            10, 1 );
    241242add_action( 'do_robots',                  'do_robots'                                      );
  • trunk/src/wp-includes/feed.php

    r25616 r26294  
    508508        'rss-http'  => 'text/xml',
    509509        'atom' => 'application/atom+xml',
    510         'rdf'  => 'application/rdf+xml'
     510        'rdf'  => 'application/rdf+xml',
     511        'rssjs' => 'application/json',
    511512    );
    512513
  • 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
  • trunk/src/wp-includes/rewrite.php

    r25659 r26294  
    744744     * @var array
    745745     */
    746     var $feeds = array( 'feed', 'rdf', 'rss', 'rss2', 'atom' );
     746    var $feeds = array( 'feed', 'rdf', 'rss', 'rss2', 'atom', 'rssjs' );
    747747
    748748    /**
  • trunk/src/wp-includes/version.php

    r26149 r26294  
    55 * @global string $wp_version
    66 */
    7 $wp_version = '3.8-alpha-26127-src';
     7$wp_version = '3.8-alpha-26294-src';
    88
    99/**
     
    1212 * @global int $wp_db_version
    1313 */
    14 $wp_db_version = 26148;
     14$wp_db_version = 26294;
    1515
    1616/**
Note: See TracChangeset for help on using the changeset viewer.