mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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:
parent
90afcb23c1
commit
b41e6d09f8
@ -633,6 +633,8 @@ function wp_get_sidebars_widgets($update = true) {
|
||||
* @param array $sidebars_widgets Sidebar widgets and their settings.
|
||||
*/
|
||||
function wp_set_sidebars_widgets( $sidebars_widgets ) {
|
||||
if ( !isset( $sidebars_widgets['array_version'] ) )
|
||||
$sidebars_widgets['array_version'] = 3;
|
||||
update_option( 'sidebars_widgets', $sidebars_widgets );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user