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: http://svn.automattic.com/wordpress/trunk@14320 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0cfdd41300
commit
4a1e7550a3
|
@ -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']);
|
||||
|
||||
$sidebars_widgets = apply_filters('sidebars_widgets', $sidebars_widgets);
|
||||
|
|
Loading…
Reference in New Issue