+ } elseif ( is_feed() && 'old' == get_query_var('feed') ) {
+ $old_feed_files = array(
+ 'wp-atom.php' => 'atom',
+ 'wp-commentsrss2.php' => 'comments_rss2',
+ 'wp-feed.php' => get_default_feed(),
+ 'wp-rdf.php' => 'rdf',
+ 'wp-rss.php' => 'rss2',
+ 'wp-rss2.php' => 'rss2',
+ );
+ if ( isset( $old_feed_files[ basename( $redirect['path'] ) ] ) ) {
+ $redirect_url = get_feed_link( $old_feed_files[ basename( $redirect['path'] ) ] );
+ wp_redirect( $redirect_url, 301 );
+ die();
+ }