Make WordPress Core

Changeset 19333


Ignore:
Timestamp:
11/18/2011 06:11:38 AM (13 years ago)
Author:
azaozz
Message:

Don't try to convert empty widget settings from old format, props SergeyBiryukov, fixes #19091

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/widgets.php

    r19332 r19333  
    297297            $settings = array();
    298298
    299         if ( !array_key_exists('_multiwidget', $settings) ) {
     299        if ( !empty($settings) && !array_key_exists('_multiwidget', $settings) ) {
    300300            // old format, convert if single widget
    301301            $settings = wp_convert_widget_settings($this->id_base, $this->option_name, $settings);
Note: See TracChangeset for help on using the changeset viewer.