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

WordPress Trac wp-trac at lists.automattic.com
Tue Sep 6 00:48:11 UTC 2011


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

 * keywords:  needs-patch => has-patch
 * milestone:  Awaiting Review => 3.3


Comment:

 Looks like `$sidebars_widgets` needs to be declared as global in
 `wp_get_sidebars_widgets()`. Otherwise `retrieve_widgets()`, being called
 from there, sees `$sidebars_widgets` as undefined, and calls
 `wp_get_sidebars_widgets()` again and again.

 The patch also fixes the notice when
 `$sidebars_widgets['wp_inactive_widgets']` is not defined.

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


More information about the wp-trac mailing list