mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 14:35:07 +00:00
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
This commit is contained in:
parent
84c1617da2
commit
83e2ae14d4
@ -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…
x
Reference in New Issue
Block a user