Make WordPress Core

Changeset 9158


Ignore:
Timestamp:
10/14/2008 06:22:52 AM (17 years ago)
Author:
markjaquith
Message:

Redirect ancient wp-*.php feed files. fixes #4604

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-atom.php

    r7991 r9158  
    11<?php
    22/**
    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
    105 *
    116 * @package WordPress
    127 */
    138
    14 if (empty($wp)) {
    15     require_once('./wp-load.php');
    16     wp('feed=atom');
    17 }
    18 
    19 require (ABSPATH . WPINC . '/feed-atom.php');
     9require( './wp-load.php' );
     10wp_redirect( get_bloginfo( 'atom_url' ), 301 );
    2011
    2112?>
  • trunk/wp-commentsrss2.php

    r7991 r9158  
    11<?php
    22/**
    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
    125 *
    136 * @package WordPress
    147 */
    158
    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');
     9require( './wp-load.php' );
     10wp_redirect( get_bloginfo( 'comments_rss2_url' ), 301 );
    2211
    2312?>
  • trunk/wp-feed.php

    r7991 r9158  
    11<?php
    22/**
    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
    135 *
    146 * @package WordPress
    157 */
    168
    17 if (empty($doing_rss)) {
    18     $doing_rss = 1;
    19     require(dirname(__FILE__) . '/wp-blog-header.php');
    20 }
    21 
    22 do_feed();
     9require( './wp-load.php' );
     10wp_redirect( get_bloginfo( 'rss2_url' ), 301 );
    2311
    2412?>
  • trunk/wp-rdf.php

    r7991 r9158  
    11<?php
    22/**
    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
    125 *
    136 * @package WordPress
    147 */
    158
    16 if (empty($wp)) {
    17     require_once('./wp-load.php');
    18     wp('feed=rdf');
    19 }
    20 
    21 require (ABSPATH . WPINC . '/feed-rdf.php');
     9require( './wp-load.php' );
     10wp_redirect( get_bloginfo( 'rdf_url' ), 301 );
    2211
    2312?>
  • trunk/wp-rss.php

    r7991 r9158  
    11<?php
    22/**
    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
    125 *
    136 * @package WordPress
    147 */
    158
    16 if (empty($wp)) {
    17     require_once('./wp-load.php');
    18     wp('feed=rss');
    19 }
    20 
    21 require (ABSPATH . WPINC . '/feed-rss.php');
     9require( './wp-load.php' );
     10wp_redirect( get_bloginfo( 'rss_url' ), 301 );
    2211
    2312?>
  • trunk/wp-rss2.php

    r7991 r9158  
    11<?php
    22/**
    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
    105 *
    116 * @package WordPress
    127 */
    138
    14 if (empty($wp)) {
    15     require_once('./wp-load.php');
    16     wp('feed=rss2');
    17 }
    18 
    19 require (ABSPATH . WPINC . '/feed-rss2.php');
     9require( './wp-load.php' );
     10wp_redirect( get_bloginfo( 'rss2_url' ), 301 );
    2011
    2112?>
Note: See TracChangeset for help on using the changeset viewer.