[wp-trac] [WordPress Trac] #13029: Evaluation of undeclared variable in get_site_option

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 16 06:38:38 UTC 2010


#13029: Evaluation of undeclared variable in get_site_option
--------------------------+-------------------------------------------------
 Reporter:  niallkennedy  |       Owner:           
     Type:  defect (bug)  |      Status:  new      
 Priority:  high          |   Milestone:  3.0      
Component:  General       |     Version:  3.0      
 Severity:  normal        |    Keywords:  has-patch
--------------------------+-------------------------------------------------
 If the get_site_option function operates in a multisite environment with a
 use_cache parameter of false then $value will be undeclared and therefore
 not match a strict comparison of false.

 Current code assumes $value will be set to false based on a wp_cache_get
 call that never happens.

 Fix:
 If $value is never set treat as if it was false.

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


More information about the wp-trac mailing list