mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-25 02:27:50 +01:00
eae78fc29c
git-svn-id: http://svn.automattic.com/wordpress/trunk@839 1a063a9b-81f0-0310-95a4-ce76da25c4cd
32 lines
585 B
PHP
32 lines
585 B
PHP
<?php
|
|
|
|
$blog = 1;
|
|
$doing_rss = 1;
|
|
require('wp-blog-header.php');
|
|
|
|
if ($feed == '' || $feed == 'feed') {
|
|
// TODO: Get default feed from options DB.
|
|
$feed = 'rss2';
|
|
}
|
|
|
|
if ( (($p != '') && ($p != 'all')) || ($name != '') || ($withcomments == 1) ) {
|
|
require('wp-commentsrss2.php');
|
|
} else {
|
|
switch ($feed) {
|
|
case 'atom':
|
|
require('wp-atom.php');
|
|
break;
|
|
case 'rdf':
|
|
require('wp-rdf.php');
|
|
break;
|
|
case 'rss':
|
|
require('wp-rss.php');
|
|
break;
|
|
case 'rss2':
|
|
require('wp-rss2.php');
|
|
break;
|
|
}
|
|
}
|
|
|
|
?>
|