Skip to content

Commit

Permalink
Rewrite API additions and improvements from David House. #2433
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.automattic.com/wordpress/trunk@3638 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
ryan committed Mar 12, 2006
1 parent 3f9714b commit 6970a75
Show file tree
Hide file tree
Showing 8 changed files with 856 additions and 633 deletions.
29 changes: 1 addition & 28 deletions wp-feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,6 @@
require(dirname(__FILE__) . '/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(ABSPATH . 'wp-commentsrss2.php');
} else {
switch ($feed) {
case 'atom':
require(ABSPATH . 'wp-atom.php');
break;
case 'rdf':
require(ABSPATH . 'wp-rdf.php');
break;
case 'rss':
require(ABSPATH . 'wp-rss.php');
break;
case 'rss2':
require(ABSPATH . 'wp-rss2.php');
break;
case 'comments-rss2':
require(ABSPATH . 'wp-commentsrss2.php');
break;
}
}
do_feed();

?>
Loading

0 comments on commit 6970a75

Please sign in to comment.