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

git-svn-id: https://develop.svn.wordpress.org/trunk@9158 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith
2008-10-14 06:22:52 +00:00
parent fe24ab0b60
commit f94cd6373f
6 changed files with 25 additions and 88 deletions
+4 -15
View File
@@ -1,23 +1,12 @@
<?php
/**
* Outputs the RSS feed RDF format using the feed-rss.php
* file in wp-includes folder.
*
* This file only sets the feed format and includes the
* feed-rss.php.
*
* This file is no longer used in WordPress and while it is
* not deprecated now. This file will most likely be
* deprecated or removed in a later version.
* Redirects to the RSS feed
* This file is deprecated and only exists for backwards compatibility
*
* @package WordPress
*/
if (empty($wp)) {
require_once('./wp-load.php');
wp('feed=rss');
}
require (ABSPATH . WPINC . '/feed-rss.php');
require( './wp-load.php' );
wp_redirect( get_bloginfo( 'rss_url' ), 301 );
?>