Changeset 10789 for trunk/wp-includes/widgets.php
- Timestamp:
- 03/15/2009 11:18:09 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/widgets.php
r10786 r10789 1356 1356 */ 1357 1357 function wp_widget_text_register() { 1358 if ( !$options = get_option('widget_text') ) 1358 $options = get_option('widget_text'); 1359 if ( !is_array($options) ) 1359 1360 $options = array(); 1361 1360 1362 $widget_ops = array('classname' => 'widget_text', 'description' => __('Arbitrary text or HTML')); 1361 1363 $control_ops = array('width' => 400, 'height' => 350, 'id_base' => 'text'); … … 2154 2156 */ 2155 2157 function wp_widget_rss_register() { 2156 if ( !$options = get_option('widget_rss') ) 2158 $options = get_option('widget_rss'); 2159 if ( !is_array($options) ) 2157 2160 $options = array(); 2161 2158 2162 $widget_ops = array('classname' => 'widget_rss', 'description' => __( 'Entries from any RSS or Atom feed' )); 2159 2163 $control_ops = array('width' => 400, 'height' => 200, 'id_base' => 'rss');
Note: See TracChangeset
for help on using the changeset viewer.