From 83e2ae14d459f8170739170ccb25da482c49ba7c Mon Sep 17 00:00:00 2001 From: azaozz Date: Fri, 18 Nov 2011 06:11:38 +0000 Subject: [PATCH] Don't try to convert empty widget settings from old format, props SergeyBiryukov, fixes #19091 git-svn-id: http://svn.automattic.com/wordpress/trunk@19333 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 9d3e8bcf5..aec35141a 100644 --- a/wp-includes/widgets.php +++ b/wp-includes/widgets.php @@ -296,7 +296,7 @@ class WP_Widget { if ( !is_array($settings) ) $settings = array(); - if ( !array_key_exists('_multiwidget', $settings) ) { + if ( !empty($settings) && !array_key_exists('_multiwidget', $settings) ) { // old format, convert if single widget $settings = wp_convert_widget_settings($this->id_base, $this->option_name, $settings); }