mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-15 23:25:50 +01:00
8d579218f6
git-svn-id: http://svn.automattic.com/wordpress/trunk@2384 1a063a9b-81f0-0310-95a4-ce76da25c4cd
38 lines
681 B
PHP
38 lines
681 B
PHP
<?php
|
|
|
|
if (empty($doing_rss)) {
|
|
$doing_rss = 1;
|
|
require('wp-blog-header.php');
|
|
}
|
|
|
|
// Remove the pad, if present.
|
|
$feed = preg_replace('/^_+/', '', $feed);
|
|
|
|
if ($feed == '' || $feed == 'feed') {
|
|
$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;
|
|
case 'comments-rss2':
|
|
require('wp-commentsrss2.php');
|
|
break;
|
|
}
|
|
}
|
|
|
|
?>
|