Make WordPress Core


Ignore:
Timestamp:
05/31/2004 11:35:32 PM (21 years ago)
Author:
rboren
Message:

index.php now handles feeds and trackbacks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-blog-header.php

    r1355 r1376  
    6969    }
    7070
     71if ($feed != '') {
     72    $doing_rss = 1;
     73}
     74
     75if ($tb == 1) {
     76    $doing_trackback = 1;
     77}
    7178
    7279// Sending HTTP headers
     
    161168}
    162169
     170if ($pagenow != 'wp-feed.php' && $feed != '') {
     171    require(dirname(__FILE__) . '/wp-feed.php');
     172    exit;
     173}
     174
     175if ($pagenow != 'wp-trackback.php' && $tb == 1) {
     176    require(dirname(__FILE__) . '/wp-trackback.php');
     177    exit;
     178}
     179
    163180if ($pagenow != 'post.php' && $pagenow != 'edit.php') {
    164181    if ($use_gzipcompression) {
Note: See TracChangeset for help on using the changeset viewer.