Make sure widgets array version is set. fixes #8339

git-svn-id: http://svn.automattic.com/wordpress/trunk@9888 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-11-25 22:38:36 +00:00
parent 90afcb23c1
commit b41e6d09f8
1 changed files with 2 additions and 0 deletions

View File

@ -633,6 +633,8 @@ function wp_get_sidebars_widgets($update = true) {
* @param array $sidebars_widgets Sidebar widgets and their settings. * @param array $sidebars_widgets Sidebar widgets and their settings.
*/ */
function wp_set_sidebars_widgets( $sidebars_widgets ) { function wp_set_sidebars_widgets( $sidebars_widgets ) {
if ( !isset( $sidebars_widgets['array_version'] ) )
$sidebars_widgets['array_version'] = 3;
update_option( 'sidebars_widgets', $sidebars_widgets ); update_option( 'sidebars_widgets', $sidebars_widgets );
} }