WordPress.org

Make WordPress Core

Changeset 9158 for trunk/wp-rss2.php


Ignore:
Timestamp:
10/14/2008 06:22:52 AM (11 years ago)
Author:
markjaquith
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-rss2.php

    r7991 r9158  
    11<?php
    22/**
    3  * Outputs the RSS2 feed XML format using the feed-rss2.php file in wp-includes
    4  * folder. This file only sets the feed format and includes the feed-rss2.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 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
    105 *
    116 * @package WordPress
    127 */
    138
    14 if (empty($wp)) {
    15     require_once('./wp-load.php');
    16     wp('feed=rss2');
    17 }
    18 
    19 require (ABSPATH . WPINC . '/feed-rss2.php');
     9require( './wp-load.php' );
     10wp_redirect( get_bloginfo( 'rss2_url' ), 301 );
    2011
    2112?>
Note: See TracChangeset for help on using the changeset viewer.