[wpmu-trac] [WordPress MU Trac] #1071: update_site_option() fails when updating with an empty array or zero length string

WordPress MU Trac wpmu-trac at lists.automattic.com
Wed Jul 22 18:07:08 UTC 2009


#1071: update_site_option() fails when updating with an empty array or zero length
string
------------------------+---------------------------------------------------
 Reporter:  apeatling   |        Owner:  somebody
     Type:  defect      |       Status:  new     
 Priority:  highest     |    Milestone:  2.8     
Component:  component1  |      Version:          
 Severity:  blocker     |   Resolution:          
 Keywords:              |  
------------------------+---------------------------------------------------
Comment (by apeatling):

 I hate trac.

 var_dump( update_option( 'test', ) ); // returns true

 var_dump( update_site_option( 'test', ) ); // returns false

 var_dump( update_option( 'test', array() ) ); // returns true

 var_dump( update_site_option( 'test', array() ) ); // returns false

 var_dump( update_option( 'test', false ) ); // returns false

 var_dump( update_site_option( 'test', false ) ); // returns false

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/1071#comment:1>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list