Make WordPress Core

Changeset 3638 for trunk/wp-feed.php


Ignore:
Timestamp:
03/12/2006 10:57:00 PM (19 years ago)
Author:
ryan
Message:

Rewrite API additions and improvements from David House. #2433

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-feed.php

    r2491 r3638  
    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 }
     8do_feed();
    369
    3710?>
Note: See TracChangeset for help on using the changeset viewer.