Changeset 9158 for trunk/wp-feed.php
- Timestamp:
- 10/14/2008 06:22:52 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-feed.php
r7991 r9158 1 1 <?php 2 2 /** 3 * Outputs the RSS2 feed XML format. This file is a shortcut or compatibility 4 * layer for easily finding the RSS feed for the site. It loads WordPress using 5 * the wp-blog-header.php file and running do_feed() function. 6 * 7 * @see do_feed() Used to display the RSS2 feed 8 * 9 * This file is no longer used in WordPress and while it is not deprecated now. 10 * This file will most likely be deprecated or removed in a later version. 11 * 12 * The link for the rss2 feed is /index.php?feed=rss2 with permalinks off. 3 * Redirects to the RSS2 feed 4 * This file is deprecated and only exists for backwards compatibility 13 5 * 14 6 * @package WordPress 15 7 */ 16 8 17 if (empty($doing_rss)) { 18 $doing_rss = 1; 19 require(dirname(__FILE__) . '/wp-blog-header.php'); 20 } 21 22 do_feed(); 9 require( './wp-load.php' ); 10 wp_redirect( get_bloginfo( 'rss2_url' ), 301 ); 23 11 24 12 ?>
Note: See TracChangeset
for help on using the changeset viewer.