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

WordPress Trac wp-trac at lists.automattic.com
Tue Oct 18 22:55:44 UTC 2011


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

Comment (by wpmuguru):

 Replying to [comment:12 ryan]:
 > As discussed in IRC, 18955.op3.2.diff circumvents the filter at the end
 of the function. get_option() already behaves like this. We might make
 get_site_option() behave in the same fashion.

 That looks fine to me although I would like to leave caching non-existence
 on the table for 3.4.

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


More information about the wp-trac mailing list