[wp-hackers] Hook add_feed - please help

Frank Bueltge frank at bueltge.de
Sun Nov 9 10:18:57 GMT 2008


I like add a feed to wordpress.
I have write a small function for generate the feed and the add my
fucntion via Hook

add_feed('mynotifier', 'my_feed');

after activate my plugin, i have the follow error-message under 2.7 beta2.

Warning: in_array() [function.in-array]: Wrong datatype for second
argument in D:\xampp\htdocs\wpbeta\wp-includes\rewrite.php on line 59
Call Stack
#	Time	Memory	Function	Location
1	0.0034	245104	{main}( )	..\plugins.php:0
2	0.0044	312272	require_once(
'D:\xampp\htdocs\wpbeta\wp-admin\admin.php' )	..\plugins.php:10
3	0.0051	329560	require_once( 'D:\xampp\htdocs\wpbeta\wp-load.php'
)	..\admin.php:19
4	0.0057	342504	require_once( 'D:\xampp\htdocs\wpbeta\wp-config.php'
)	..\wp-load.php:27
5	0.0088	540928	require_once( 'D:\xampp\htdocs\wpbeta\wp-settings.php'
)	..\wp-config.php:47
6	0.5108	11844880	include_once(
'D:\xampp\htdocs\wpbeta\wp-content\plugins\draft-feed\draft-feed.php'
) ..\wpsettings.php:469
7	0.5109	11844912	add_feed( string(13), string(10) )	..\draft-feed.php:66
8	0.5109	11845184	in_array ( string(13), null )	..\rewrite.php:59
Dump $_SERVER

$_SERVER['REMOTE_ADDR'] =

string '127.0.0.1' (length=9)
$_SERVER['REQUEST_METHOD'] = string 'GET' (length=3)


Please can you help me?

Thanks a lot.


More information about the wp-hackers mailing list