]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-commentsrss2.php
Wordpress 2.9.2-scripts
[autoinstalls/wordpress.git] / wp-commentsrss2.php
index 9c3b230f626fd589702e27368df5984382f14c37..1c146b1472cbeaed4cd26a8648b5b267c9a89a0e 100644 (file)
@@ -1,23 +1,12 @@
 <?php
 /**
- * Outputs the RSS2 XML format comment feed using the feed-rss2.php file in
- * wp-includes folder. This file only sets the feed format and includes the
- * feed-rss2-comments.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 rss2 comment feed is /index.php?feed=rss2&withcomments=1
- * with permalinks off.
+ * Redirects to the Comments RSS2 feed
+ * This file is deprecated and only exists for backwards compatibility
  *
  * @package WordPress
  */
 
-if (empty($wp)) {
-       require_once('./wp-load.php');
-       wp('feed=rss2&withcomments=1');
-}
-
-require (ABSPATH . WPINC . '/feed-rss2-comments.php');
+require( './wp-load.php' );
+wp_redirect( get_bloginfo( 'comments_rss2_url' ), 301 );
 
 ?>
\ No newline at end of file