mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +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:
+4
-13
@@ -1,21 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* Outputs the Atom feed XML format using the feed-atom.php file in wp-includes
|
||||
* folder. This file only sets the feed format and includes the feed-atom.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.
|
||||
*
|
||||
* The link for the atom feed is /index.php?feed=atom with permalinks off.
|
||||
* Redirects to the Atom feed
|
||||
* This file is deprecated and only exists for backwards compatibility
|
||||
*
|
||||
* @package WordPress
|
||||
*/
|
||||
|
||||
if (empty($wp)) {
|
||||
require_once('./wp-load.php');
|
||||
wp('feed=atom');
|
||||
}
|
||||
|
||||
require (ABSPATH . WPINC . '/feed-atom.php');
|
||||
require( './wp-load.php' );
|
||||
wp_redirect( get_bloginfo( 'atom_url' ), 301 );
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user