]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-feed.php
Wordpress 2.7.1
[autoinstalls/wordpress.git] / wp-feed.php
index d4f1a5bff0bf7e7641fb2a5e4364b6fae61e855c..78daa6d226fb042f92607279ef1741f315378156 100644 (file)
@@ -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');
-}
-
-do_feed();
+require( './wp-load.php' );
+wp_redirect( get_bloginfo( 'rss2_url' ), 301 );
 
-?>
+?>
\ No newline at end of file