WordPress/wp-feed.php
rboren 75d974639b Trackback fix ups.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1696 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-09-18 22:47:43 +00:00

36 lines
643 B
PHP

<?php
if (! $doing_rss) {
$doing_rss = 1;
require('wp-blog-header.php');
}
// Remove the pad, if present.
$feed = preg_replace('/^_+/', '', $feed);
if ($feed == '' || $feed == 'feed') {
// TODO: Get default feed from options DB.
$feed = 'rss2';
}
if ( is_single() || ($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;
}
}
?>