Changeset 9158 for trunk/wp-rdf.php

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

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

Files:

Legend:

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

    r7991 r9158  
    11<?php 
    22/** 
    3  * Outputs the RDF feed using the feed-rdf.php 
    4  * file in wp-includes folder. 
    5  * 
    6  * This file only sets the feed format and includes the 
    7  * feed-rdf.php. 
    8  * 
    9  * This file is no longer used in WordPress and while it is 
    10  * not deprecated now. This file will most likely be 
    11  * deprecated or removed in a later version. 
     3 * Redirects to the RDF feed 
     4 * This file is deprecated and only exists for backwards compatibility 
    125 * 
    136 * @package WordPress 
    147 */ 
    158 
    16 if (empty($wp)) { 
    17     require_once('./wp-load.php'); 
    18     wp('feed=rdf'); 
    19 
    20  
    21 require (ABSPATH . WPINC . '/feed-rdf.php'); 
     9require( './wp-load.php' ); 
     10wp_redirect( get_bloginfo( 'rdf_url' ), 301 ); 
    2211 
    2312?>