[wp-trac] Re: [WordPress Trac] #10300: Optimization in
wp_get_sidebars_widgets() corrupts the widgets
WordPress Trac
wp-trac at lists.automattic.com
Tue Jun 30 02:50:59 GMT 2009
#10300: Optimization in wp_get_sidebars_widgets() corrupts the widgets
-------------------------------+--------------------------------------------
Reporter: Denis-de-Bernardy | Owner: azaozz
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.8.1
Component: Widgets | Version: 2.8
Severity: normal | Keywords:
-------------------------------+--------------------------------------------
Changes (by azaozz):
* severity: blocker => normal
Comment:
To work around this we can add back the array_version when
`$_wp_sidebars_widgets` is not empty
https://core.trac.wordpress.org/browser/trunk/wp-includes/widgets.php#L970
Perhaps we can remove the conversion part from `wp_get_sidebars_widgets()`
for 2.9. It seems it was used in WordPress 2.2 to convert previous widgets
set by the Sidebar Widgets plugin
(http://wordpress.org/extend/plugins/widgets/) that was added to the core
in 2.2. So the conversion is not needed unless upgrading from WordPress
2.1 or earlier and using the plugin.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10300#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list