mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@26294 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1082,6 +1082,21 @@ function do_feed_atom( $for_comments ) {
|
||||
load_template( ABSPATH . WPINC . '/feed-atom.php' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Load either rssjs comment feed or rssjs posts feed.
|
||||
*
|
||||
* @since 3.8.0
|
||||
*
|
||||
* @param bool $for_comments True for the comment feed, false for normal feed.
|
||||
*/
|
||||
function do_feed_rssjs( $for_comments ) {
|
||||
if ( $for_comments ) {
|
||||
load_template( ABSPATH . WPINC . '/feed-rssjs-comments.php' );
|
||||
} else {
|
||||
load_template( ABSPATH . WPINC . '/feed-rssjs.php' );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the robots.txt file content.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user