From 1cc6c3cfe87ffa1b8875a2344eefd7c3921eed15 Mon Sep 17 00:00:00 2001 From: Andrew Ozz 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: https://develop.svn.wordpress.org/trunk@19333 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 9d3e8bcf5a..aec35141a6 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); }