mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Canonical redirect to correct location if rss2 is not default feed. wp-feed.php redirection to default feed type instad of rss2. Props solarissmoke. Fixes #13047
git-svn-id: https://develop.svn.wordpress.org/trunk@14162 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+2
-2
@@ -1,12 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* Redirects to the RSS2 feed
|
||||
* Redirects to the default feed
|
||||
* This file is deprecated and only exists for backwards compatibility
|
||||
*
|
||||
* @package WordPress
|
||||
*/
|
||||
|
||||
require( './wp-load.php' );
|
||||
wp_redirect( get_bloginfo( 'rss2_url' ), 301 );
|
||||
wp_redirect( get_bloginfo( get_default_feed() . '_url' ), 301 );
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user