Make sure sidebars_widgets is an array. If it is a string (no idea how, but it happens), we get a fatal error
git-svn-id: https://develop.svn.wordpress.org/trunk@14320 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8722ccc178
commit
0a658396a5
@ -1072,7 +1072,7 @@ function wp_get_sidebars_widgets($deprecated = true) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( isset($sidebars_widgets['array_version']) )
|
if ( is_array( $sidebars_widgets ) && isset($sidebars_widgets['array_version']) )
|
||||||
unset($sidebars_widgets['array_version']);
|
unset($sidebars_widgets['array_version']);
|
||||||
|
|
||||||
$sidebars_widgets = apply_filters('sidebars_widgets', $sidebars_widgets);
|
$sidebars_widgets = apply_filters('sidebars_widgets', $sidebars_widgets);
|
||||||
|
Loading…
Reference in New Issue
Block a user