[wpmu-trac] [WordPress MU Trac] #830: remove_options_whitelist() is generating errors when options.php is loaded - r1589

WordPress MU Trac wpmu-trac at lists.automattic.com
Fri Dec 26 12:57:19 GMT 2008


#830: remove_options_whitelist() is generating errors when options.php is loaded
- r1589
------------------------+---------------------------------------------------
 Reporter:  burtadsit   |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  normal      |   Milestone:          
Component:  component1  |     Version:          
 Severity:  normal      |    Keywords:          
------------------------+---------------------------------------------------
 The function remove_option_whitelist() in plugin.php is not checking to
 see if it's going to reference a var that has been unset(). It is called
 by mu_options() in mu.php and in there it unsets() an element in the
 $options array.

 Why? I dunno but it does. Then it asks remove_option_whitelist() to get
 rid of something that doesn't exist anymore. It should check for isset(),
 is_array() but it's not. Generates four of the following:

 Warning: array_search() [function.array-search]: Wrong datatype for second
 argument in /wp-admin/includes/plugin.php on line 1044

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/830>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list