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-atom.php

    r7991 r9158  
    11<?php 
    22/** 
    3  * Outputs the Atom feed XML format using the feed-atom.php file in wp-includes 
    4  * folder. This file only sets the feed format and includes the feed-atom.php. 
    5  * 
    6  * This file is no longer used in WordPress and while it is not deprecated now. 
    7  * This file will most likely be deprecated or removed in a later version. 
    8  * 
    9  * The link for the atom feed is /index.php?feed=atom with permalinks off. 
     3 * Redirects to the Atom feed 
     4 * This file is deprecated and only exists for backwards compatibility 
    105 * 
    116 * @package WordPress 
    127 */ 
    138 
    14 if (empty($wp)) { 
    15     require_once('./wp-load.php'); 
    16     wp('feed=atom'); 
    17 
    18  
    19 require (ABSPATH . WPINC . '/feed-atom.php'); 
     9require( './wp-load.php' ); 
     10wp_redirect( get_bloginfo( 'atom_url' ), 301 ); 
    2011 
    2112?>