Changeset 9158
- Timestamp:
- 10/14/2008 06:22:52 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-atom.php
r7991 r9158 1 1 <?php 2 2 /** 3 * Outputs the Atom feed XML format using the feed-atom.php file in wp-includes 4 * folder. This file only sets the feed format and includes the feed-atom.php. 5 * 6 * This file is no longer used in WordPress and while it is not deprecated now. 7 * This file will most likely be deprecated or removed in a later version. 8 * 9 * The link for the atom feed is /index.php?feed=atom with permalinks off. 3 * Redirects to the Atom feed 4 * This file is deprecated and only exists for backwards compatibility 10 5 * 11 6 * @package WordPress 12 7 */ 13 8 14 if (empty($wp)) { 15 require_once('./wp-load.php'); 16 wp('feed=atom'); 17 } 18 19 require (ABSPATH . WPINC . '/feed-atom.php'); 9 require( './wp-load.php' ); 10 wp_redirect( get_bloginfo( 'atom_url' ), 301 ); 20 11 21 12 ?> -
trunk/wp-commentsrss2.php
r7991 r9158 1 1 <?php 2 2 /** 3 * Outputs the RSS2 XML format comment feed using the feed-rss2.php file in 4 * wp-includes folder. This file only sets the feed format and includes the 5 * feed-rss2-comments.php. 6 * 7 * This file is no longer used in WordPress and while it is not deprecated now. 8 * This file will most likely be deprecated or removed in a later version. 9 * 10 * The link for the rss2 comment feed is /index.php?feed=rss2&withcomments=1 11 * with permalinks off. 3 * Redirects to the Comments RSS2 feed 4 * This file is deprecated and only exists for backwards compatibility 12 5 * 13 6 * @package WordPress 14 7 */ 15 8 16 if (empty($wp)) { 17 require_once('./wp-load.php'); 18 wp('feed=rss2&withcomments=1'); 19 } 20 21 require (ABSPATH . WPINC . '/feed-rss2-comments.php'); 9 require( './wp-load.php' ); 10 wp_redirect( get_bloginfo( 'comments_rss2_url' ), 301 ); 22 11 23 12 ?> -
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 ?> -
trunk/wp-rdf.php
r7991 r9158 1 1 <?php 2 2 /** 3 * Outputs the RDF feed using the feed-rdf.php 4 * file in wp-includes folder. 5 * 6 * This file only sets the feed format and includes the 7 * feed-rdf.php. 8 * 9 * This file is no longer used in WordPress and while it is 10 * not deprecated now. This file will most likely be 11 * deprecated or removed in a later version. 3 * Redirects to the RDF feed 4 * This file is deprecated and only exists for backwards compatibility 12 5 * 13 6 * @package WordPress 14 7 */ 15 8 16 if (empty($wp)) { 17 require_once('./wp-load.php'); 18 wp('feed=rdf'); 19 } 20 21 require (ABSPATH . WPINC . '/feed-rdf.php'); 9 require( './wp-load.php' ); 10 wp_redirect( get_bloginfo( 'rdf_url' ), 301 ); 22 11 23 12 ?> -
trunk/wp-rss.php
r7991 r9158 1 1 <?php 2 2 /** 3 * Outputs the RSS feed RDF format using the feed-rss.php 4 * file in wp-includes folder. 5 * 6 * This file only sets the feed format and includes the 7 * feed-rss.php. 8 * 9 * This file is no longer used in WordPress and while it is 10 * not deprecated now. This file will most likely be 11 * deprecated or removed in a later version. 3 * Redirects to the RSS feed 4 * This file is deprecated and only exists for backwards compatibility 12 5 * 13 6 * @package WordPress 14 7 */ 15 8 16 if (empty($wp)) { 17 require_once('./wp-load.php'); 18 wp('feed=rss'); 19 } 20 21 require (ABSPATH . WPINC . '/feed-rss.php'); 9 require( './wp-load.php' ); 10 wp_redirect( get_bloginfo( 'rss_url' ), 301 ); 22 11 23 12 ?> -
trunk/wp-rss2.php
r7991 r9158 1 1 <?php 2 2 /** 3 * Outputs the RSS2 feed XML format using the feed-rss2.php file in wp-includes 4 * folder. This file only sets the feed format and includes the feed-rss2.php. 5 * 6 * This file is no longer used in WordPress and while it is not deprecated now. 7 * This file will most likely be deprecated or removed in a later version. 8 * 9 * 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 10 5 * 11 6 * @package WordPress 12 7 */ 13 8 14 if (empty($wp)) { 15 require_once('./wp-load.php'); 16 wp('feed=rss2'); 17 } 18 19 require (ABSPATH . WPINC . '/feed-rss2.php'); 9 require( './wp-load.php' ); 10 wp_redirect( get_bloginfo( 'rss2_url' ), 301 ); 20 11 21 12 ?>
Note: See TracChangeset
for help on using the changeset viewer.