Deprecate RSS 0.92 and RDF feeds, and 301 them to the default feed. props johnpbloch. fixes #4967

git-svn-id: https://develop.svn.wordpress.org/trunk@18537 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith
2011-08-11 23:30:59 +00:00
parent 7fe1e0fc4a
commit 47bf346a9f
2 changed files with 9 additions and 2 deletions
+2 -1
View File
@@ -63,7 +63,8 @@ function bloginfo_rss($show = '') {
* @return string Default feed, or for example 'rss2', 'atom', etc.
*/
function get_default_feed() {
return apply_filters('default_feed', 'rss2');
$default_feed = apply_filters('default_feed', 'rss2');
return in_array( $default_feed, array( 'rss', 'rdf' ) ) ? 'rss2' : $default_feed;
}
/**