Skip to content

Commit b573abb

Browse files
committed
Rewrite API additions and improvements from David House. WordPress#2433
git-svn-id: https://develop.svn.wordpress.org/trunk@3638 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 5fd8e9c commit b573abb

8 files changed

Lines changed: 856 additions & 633 deletions

File tree

wp-feed.php

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,6 @@
55
require(dirname(__FILE__) . '/wp-blog-header.php');
66
}
77

8-
// Remove the pad, if present.
9-
$feed = preg_replace('/^_+/', '', $feed);
10-
11-
if ($feed == '' || $feed == 'feed') {
12-
$feed = 'rss2';
13-
}
14-
15-
if ( is_single() || ($withcomments == 1) ) {
16-
require(ABSPATH . 'wp-commentsrss2.php');
17-
} else {
18-
switch ($feed) {
19-
case 'atom':
20-
require(ABSPATH . 'wp-atom.php');
21-
break;
22-
case 'rdf':
23-
require(ABSPATH . 'wp-rdf.php');
24-
break;
25-
case 'rss':
26-
require(ABSPATH . 'wp-rss.php');
27-
break;
28-
case 'rss2':
29-
require(ABSPATH . 'wp-rss2.php');
30-
break;
31-
case 'comments-rss2':
32-
require(ABSPATH . 'wp-commentsrss2.php');
33-
break;
34-
}
35-
}
8+
do_feed();
369

3710
?>

0 commit comments

Comments
 (0)