Clean feed and trackback URLs.

git-svn-id: http://svn.automattic.com/wordpress/trunk@837 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rboren 2004-02-05 21:17:32 +00:00
parent 6d55b3153a
commit c208cf8542
1 changed files with 31 additions and 0 deletions

31
wp-feed.php Normal file
View File

@ -0,0 +1,31 @@
<?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;
}
}
?>