From 4a1e7550a3c63f5881827d1b8e133bbbd72600a0 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Fri, 30 Apr 2010 17:37:42 +0000 Subject: [PATCH] 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 --- wp-includes/widgets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/widgets.php b/wp-includes/widgets.php index 3ecc523801..67f09c4371 100644 --- a/wp-includes/widgets.php +++ b/wp-includes/widgets.php @@ -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);