[wp-trac] Re: [WordPress Trac] #9770: dynamic_sidebar() should not save widgets on theme preview

WordPress Trac wp-trac at lists.automattic.com
Sun May 10 01:24:16 GMT 2009


#9770: dynamic_sidebar() should not save widgets on theme preview
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |       Owner:                        
     Type:  defect (bug)       |      Status:  new                   
 Priority:  normal             |   Milestone:  2.8                   
Component:  Widgets            |     Version:  2.8                   
 Severity:  minor              |    Keywords:  has-patch dev-feedback
-------------------------------+--------------------------------------------

Comment(by azaozz):

 Replying to [ticket:9770 Denis-de-Bernardy]:
 > when looking a theme that adds widgets and sidebars, dynamic_sidebar()
 calls currently save the sidebars_widgets option.

 The option is updated only when `$sidebars_widgets['array_version'] = 3`
 is not set and `is_admin()` is true. This is a test if the data in the
 array is in old format which only happens when upgrading WordPress from
 2.3 (I think).

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


More information about the wp-trac mailing list