[wp-trac] [WordPress Trac] #18598: When "sidebars_widgets" option is malformed, an infinite loop occurs

WordPress Trac wp-trac at lists.automattic.com
Mon Sep 5 23:49:04 UTC 2011


#18598: When "sidebars_widgets" option is malformed, an infinite loop occurs
--------------------------+------------------------------
 Reporter:  Viper007Bond  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Widgets       |     Version:  3.3
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |
--------------------------+------------------------------

Comment (by Viper007Bond):

 Replying to [comment:1 Viper007Bond]:
 > At least I'm assuming my option is malformed. Isn't it supposed to have
 an `array_version` in it?

 Yes, here's a valid looking value:

 {{{
 a:7:{s:19:"wp_inactive_widgets";a:0:{}s:9:"sidebar-1";a:1:{i:0;s:10:"calendar-6";}s:9:"sidebar-2";a:0:{}s:9:"sidebar-3";a:0:{}s:9:"sidebar-4";a:0:{}s:9:"sidebar-5";a:0:{}s:13:"array_version";i:3;}
 }}}

 No break should be there because if `array_version` is 1, then both
 upgrade routines need to run.

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


More information about the wp-trac mailing list