WordPress.org

Make WordPress Core

Ticket #19091: 19091.patch

File 19091.patch, 545 bytes (added by SergeyBiryukov, 2 years ago)
  • wp-includes/widgets.php

     
    296296                if ( !is_array($settings) ) 
    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); 
    302302                }