mirror of
git://develop.git.wordpress.org/
synced 2025-01-19 05:38:07 +01:00
Clean feed and trackback URLs.
git-svn-id: https://develop.svn.wordpress.org/trunk@837 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6ebd3ca6c0
commit
0c38a42653
31
wp-feed.php
Normal file
31
wp-feed.php
Normal 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;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user