Make WordPress Core

Changeset 14162 for trunk/wp-feed.php


Ignore:
Timestamp:
04/19/2010 12:03:01 PM (14 years ago)
Author:
dd32
Message:

Canonical redirect to correct location if rss2 is not default feed. wp-feed.php redirection to default feed type instad of rss2. Props solarissmoke. Fixes #13047

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-feed.php

    r9158 r14162  
    11<?php
    22/**
    3  * Redirects to the RSS2 feed
     3 * Redirects to the default feed
    44 * This file is deprecated and only exists for backwards compatibility
    55 *
     
    88
    99require( './wp-load.php' );
    10 wp_redirect( get_bloginfo( 'rss2_url' ), 301 );
     10wp_redirect( get_bloginfo( get_default_feed() . '_url' ), 301 );
    1111
    1212?>
Note: See TracChangeset for help on using the changeset viewer.