[wp-hackers] Warning in post.php line 1997

Olivier autremonde75 at gmail.com
Fri Jan 29 11:58:16 UTC 2010


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.


More information about the wp-hackers mailing list