Show
Ignore:
Timestamp:
10/14/08 06:22:52 (2 months ago)
Author:
markjaquith
Message:

Redirect ancient wp-*.php feed files. fixes #4604

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-feed.php

    r7991 r9158  
    11<?php 
    22/** 
    3  * Outputs the RSS2 feed XML format. This file is a shortcut or compatibility 
    4  * layer for easily finding the RSS feed for the site. It loads WordPress using 
    5  * the wp-blog-header.php file and running do_feed() function. 
    6  * 
    7  * @see do_feed() Used to display the RSS2 feed 
    8  * 
    9  * This file is no longer used in WordPress and while it is not deprecated now. 
    10  * This file will most likely be deprecated or removed in a later version. 
    11  * 
    12  * The link for the rss2 feed is /index.php?feed=rss2 with permalinks off. 
     3 * Redirects to the RSS2 feed 
     4 * This file is deprecated and only exists for backwards compatibility 
    135 * 
    146 * @package WordPress 
    157 */ 
    168 
    17 if (empty($doing_rss)) { 
    18     $doing_rss = 1; 
    19     require(dirname(__FILE__) . '/wp-blog-header.php'); 
    20 
    21  
    22 do_feed(); 
     9require( './wp-load.php' ); 
     10wp_redirect( get_bloginfo( 'rss2_url' ), 301 ); 
    2311 
    2412?>