[wp-trac] [WordPress Trac] #22233: Multiple calls to update_option with the same array only saves the first time

WordPress Trac noreply at wordpress.org
Sat Oct 20 16:29:09 UTC 2012


#22233: Multiple calls to update_option with the same array only saves the first
time
--------------------------+----------------------------------
 Reporter:  exz           |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.4.2
 Severity:  normal        |   Keywords:  update_option, cache
--------------------------+----------------------------------
 This gist has an example of how this problem can be reproduced:
 https://gist.github.com/3923757

 If you run the three functions in three separate page loads you will see
 that the foo attribute of `$b` doesn't get saved. It seems to be some kind
 of cache problem.

 I've been able to reproduce this in 3.4.2, 3.4.3-alpha and 3.5-beta2

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


More information about the wp-trac mailing list