Changeset 6560 for trunk/wp-includes/widgets.php
- Timestamp:
- 01/05/2008 05:20:56 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/widgets.php
r6556 r6560 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'); … … 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(); … … 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'); … … 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');
Note: See TracChangeset
for help on using the changeset viewer.