Ticket #5583: 5583b.diff
File 5583b.diff, 1.6 KB (added by , 17 years ago) |
---|
-
wp-includes/widgets.php
636 636 } 637 637 638 638 function wp_widget_text_register() { 639 $options = get_option('widget_text'); 639 if ( !$options = get_option('widget_text') ) 640 $options = array(); 640 641 $widget_ops = array('classname' => 'widget_text', 'description' => __('Arbitrary text or HTML')); 641 642 $control_ops = array('width' => 460, 'height' => 350, 'id_base' => 'text'); 642 643 $name = __('Text'); … … 792 793 } 793 794 794 795 function wp_widget_categories_register() { 795 $options = get_option( 'widget_categories' ); 796 if ( !$options = get_option( 'widget_categories' ) ) 797 $options = array(); 798 796 799 if ( isset($options['title']) ) 797 800 $options = wp_widget_categories_upgrade(); 798 801 … … 1157 1160 } 1158 1161 1159 1162 function wp_widget_rss_register() { 1160 $options = get_option('widget_rss'); 1163 if ( !$options = get_option('widget_rss') ) 1164 $options = array(); 1161 1165 $widget_ops = array('classname' => 'widget_rss', 'description' => __( 'Entries from any RSS or Atom feed' )); 1162 1166 $control_ops = array('width' => 410, 'height' => 200, 'id_base' => 'rss'); 1163 1167 $name = __('RSS'); … … 1347 1351 1348 1352 // Registers each instance of our widget on startup 1349 1353 function widget_many_register() { 1350 $options = get_option('widget_many'); 1354 if ( !$options = get_option('widget_many') ) 1355 $options = array(); 1356 1351 1357 $widget_ops = array('classname' => 'widget_many', 'description' => __('Widget which allows multiple instances')); 1352 1358 $control_ops = array('width' => 400, 'height' => 350, 'id_base' => 'many'); 1353 1359 $name = __('Many');