WordPress.org

Make WordPress Core

Ticket #6532: 6532.patch

File 6532.patch, 573 bytes (added by DD32, 10 years ago)
  • wp-includes/widgets.php

     
    644644} 
    645645 
    646646function wp_widget_text_register() { 
    647         if ( !$options = get_option('widget_text') ) 
     647        if ( !$options = get_option('widget_text') || ! is_array($options) ) 
    648648                $options = array(); 
    649649        $widget_ops = array('classname' => 'widget_text', 'description' => __('Arbitrary text or HTML')); 
    650650        $control_ops = array('width' => 400, 'height' => 350, 'id_base' => 'text');