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:
markjaquith 2010-04-30 17:37:42 +00:00
parent 0cfdd41300
commit 4a1e7550a3
1 changed files with 1 additions and 1 deletions

View File

@ -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);