Make sure widgets array version is set. fixes #8339
git-svn-id: https://develop.svn.wordpress.org/trunk@9888 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
390984d25d
commit
2f898b01eb
@ -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