[wp-trac] [WordPress Trac] #18955: get_site_option caches default value when option does not exist

WordPress Trac wp-trac at lists.automattic.com
Wed Oct 19 21:08:40 UTC 2011


#18955: get_site_option caches default value when option does not exist
--------------------------+---------------------
 Reporter:  wpmuguru      |       Owner:  duck_
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  3.3
Component:  Multisite     |     Version:  3.2.1
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |
--------------------------+---------------------

Comment (by duck_):

 18955.op3.2.diff would result in different behaviour for get_site_option()
 on singlesite vs multisite. When calling get_site_option( $option,
 'default' ); for a non-existent option $option site_option_$option would
 run on singlesite, but not on multisite.

 Therefore gone with 18955.opt3.diff per IRC.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18955#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list