]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-atom.php
Wordpress 3.1.4-scripts
[autoinstalls/wordpress.git] / wp-atom.php
index 9e20eb68ee2e0e5dda988f323ec11bbeb087d239..a83ac7db1d6b58b03dc5ae1da7e319294ac25f3f 100644 (file)
@@ -1,21 +1,12 @@
 <?php
 /**
 <?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
  */
 
  *
  * @package WordPress
  */
 
-if (empty($wp)) {
-       require_once('./wp-load.php');
-       wp('feed=atom');
-}
-
-require (ABSPATH . WPINC . '/feed-atom.php');
-
-?>
\ No newline at end of file
+require( './wp-load.php' );
+wp_redirect( get_bloginfo( 'atom_url' ), 301 );
+exit;
+?>