From b721c5b54fa3454272ea253da4c29dee60927466 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 31 May 2004 23:35:32 +0000 Subject: [PATCH] index.php now handles feeds and trackbacks. git-svn-id: https://develop.svn.wordpress.org/trunk@1376 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-blog-header.php | 17 +++++++++++++++++ wp-feed.php | 10 +++++++--- wp-includes/functions.php | 11 +++++------ wp-trackback.php | 5 ++++- 4 files changed, 33 insertions(+), 10 deletions(-) diff --git a/wp-blog-header.php b/wp-blog-header.php index 3b01dbce75..bc49ac1beb 100644 --- a/wp-blog-header.php +++ b/wp-blog-header.php @@ -68,6 +68,13 @@ $wpvarstoreset = array('m','p','posts','w', 'cat','withcomments','s','search','e } } +if ($feed != '') { + $doing_rss = 1; +} + +if ($tb == 1) { + $doing_trackback = 1; +} // Sending HTTP headers @@ -160,6 +167,16 @@ if (1 == count($posts)) { } } +if ($pagenow != 'wp-feed.php' && $feed != '') { + require(dirname(__FILE__) . '/wp-feed.php'); + exit; +} + +if ($pagenow != 'wp-trackback.php' && $tb == 1) { + require(dirname(__FILE__) . '/wp-trackback.php'); + exit; +} + if ($pagenow != 'post.php' && $pagenow != 'edit.php') { if ($use_gzipcompression) { // gzipping the output of the script diff --git a/wp-feed.php b/wp-feed.php index 121689179b..6b4dd6e825 100644 --- a/wp-feed.php +++ b/wp-feed.php @@ -1,8 +1,12 @@ ID;