mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-05 15:16:59 +00:00
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:
+5
-17
@@ -1,24 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* Outputs the RSS2 feed XML format. This file is a shortcut or compatibility
|
||||
* layer for easily finding the RSS feed for the site. It loads WordPress using
|
||||
* the wp-blog-header.php file and running do_feed() function.
|
||||
*
|
||||
* @see do_feed() Used to display the RSS2 feed
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* The link for the rss2 feed is /index.php?feed=rss2 with permalinks off.
|
||||
* Redirects to the RSS2 feed
|
||||
* This file is deprecated and only exists for backwards compatibility
|
||||
*
|
||||
* @package WordPress
|
||||
*/
|
||||
|
||||
if (empty($doing_rss)) {
|
||||
$doing_rss = 1;
|
||||
require(dirname(__FILE__) . '/wp-blog-header.php');
|
||||
}
|
||||
require( './wp-load.php' );
|
||||
wp_redirect( get_bloginfo( 'rss2_url' ), 301 );
|
||||
|
||||
do_feed();
|
||||
|
||||
?>
|
||||
?>
|
||||
Reference in New Issue
Block a user