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;