[wp-trac] [WordPress Trac] #11321: Warning detected in widgets.php

WordPress Trac wp-trac at lists.automattic.com
Fri Dec 4 07:56:42 UTC 2009


#11321: Warning detected in widgets.php
--------------------------+-------------------------------------------------
 Reporter:  yousan_o      |       Owner:            
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  General       |     Version:            
 Severity:  normal        |    Keywords:  has-patch 
--------------------------+-------------------------------------------------
 An unchecked argument can cause a flood of php warnings.
 Belowings are the two lines of the warnings.

 I suppose to cast to array to void the warning.



 {{{
 <br />
 <b>Warning</b>:  in_array() [<a href='function.in-array'>function.in-
 array</a>]: Wrong datatype for second argument in
 <b>/usr/home/wordpress/public_html/wordpress_svn/wp-
 includes/widgets.php</b> on line <b>612</b><br />
 <br />
 <b>Warning</b>:  in_array() [<a href='function.in-array'>function.in-
 array</a>]: Wrong datatype for second argument in
 <b>/usr/home/wordpress/public_html/wordpress_svn/wp-
 includes/widgets.php</b> on line <b>723</b><br />
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11321>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list