[wp-trac] [WordPress Trac] #10954: Widgets Disappear

WordPress Trac wp-trac at lists.automattic.com
Thu Nov 19 01:08:11 UTC 2009


#10954: Widgets Disappear
--------------------------+-------------------------------------------------
 Reporter:  hakre         |       Owner:  azaozz       
     Type:  defect (bug)  |      Status:  new          
 Priority:  normal        |   Milestone:  2.9          
Component:  Widgets       |     Version:  2.8.4        
 Severity:  normal        |    Keywords:  needs-testing
--------------------------+-------------------------------------------------
Changes (by azaozz):

  * keywords:  tested => needs-testing


Comment:

 Replying to [comment:12 Denis-de-Bernardy]:
 > I've seen occurrences of this too, and checking on save probably is the
 wrong approach. the core issue is when the option ends up looking like one
 or both of:
 > array('_multiwidget' => 1);
 > array('_multiwidget' => 1, 'foo' => 'bar');

 The first is a valid empty widget option, the `'_multiwidget' => 1` gets
 unset when retrieving it. Filtering the non-numeric keys on save prevents
 the second one.

 > whatever the cause, the widgets screen ends up not displaying the widget
 at all in the second case (not even in the available widgets), and there
 is no means to fix the issue short of deleting the option in the database.

 Fixing that is the purpose of this patch. Setting to needs-testing again
 as it's very late in the dev. cycle and this would need to be tested more
 (preferably with different themes too) if we want it in 2.9. Would be good
 to have perhaps 3-4 more "tested" responses.

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


More information about the wp-trac mailing list