﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
4619	add_feed does not generate rewrite rules	cavemonkey50	westi	"When using the function add_feed to add a new feed type, the function is supposed to generate the correct rewrite rules to make the feed type functional. However, this does not occur in the function.

Lines 30-32 of includes/rewrite.php are supposed to handle adding the feed type to the array of feeds:

{{{
if (!in_array($feedname, $wp_rewrite->feeds)) { //override the file if it is
	$wp_rewrite->feeds[] = $feedname;
}
}}}

However, when add_feed calls the array, the array is empty because the $wp_rewrite class has not yet been executed. Therefore, the check to see if the feed name already exists is pointless. Even though $wp_rewrite class has not been run, $wp-rewrite->feeds gets populated with the new feed names, which then could be added to the array later.

Although, adding the new feed names to the array never occurs. Line 229 then defines feed names, completely ignoring the previously added feed names.

{{{
var $feeds = array ( 'feed', 'rdf', 'rss', 'rss2', 'atom' );
}}}

So basically, the feed names never get added to the feeds array, therefore never having the correct rewrite rules generated."	defect (bug)	closed	normal		Administration	2.2.1	normal	invalid	reporter-feedback	
