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
This commit is contained in:
parent
c2a18ab5fd
commit
1cc6c3cfe8
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user