[wp-hackers] Warning in post.php line 1997
Dion Hulse (dd32)
wordpress at dd32.id.au
Fri Jan 29 12:06:10 UTC 2010
Can you post your plugin, and a email that'll reproduce it?
You'd probably be better off creating a ticket on
http://core.trac.wordpress.org/ as well if its a bug in WordPress.
On Fri, 29 Jan 2010 22:58:16 +1100, Olivier <autremonde75 at gmail.com> wrote:
> Hello,
>
> My plugin creates custom types post through emails. I can submit
> successfully posts through emails but I am getting a warning related
> in_array invalid type for second argument in post.php on line 1997 :
> if ( $post_name_check || in_array($slug, $wp_rewrite->feeds) ) {
>
> If I modify this line to this :
> if ( $post_name_check || in_array($slug, $feeds) ) {
>
> The warning is apparently gone. Not sure if this is a valid fix
> however.
>
> This issue is in WP 2.9.1.
--
Dion Hulse / dd32
Contact:
e: contact at dd32.id.au
msn: msn at d32.id.au
skype: theonly_dd32
Web: http://dd32.id.au/
More information about the wp-hackers
mailing list