Changeset 6726 for trunk/wp-includes/widgets.php
- Timestamp:
- 02/05/2008 06:47:27 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/widgets.php
r6717 r6726 731 731 if ( !$updated && !empty($_POST['sidebar']) ) { 732 732 $sidebar = (string) $_POST['sidebar']; 733 733 734 734 $sidebars_widgets = wp_get_sidebars_widgets(); 735 735 if ( isset($sidebars_widgets[$sidebar]) ) … … 737 737 else 738 738 $this_sidebar = array(); 739 739 740 740 foreach ( $this_sidebar as $_widget_id ) { 741 741 if ( 'wp_widget_categories' == $wp_registered_widgets[$_widget_id]['callback'] && isset($wp_registered_widgets[$_widget_id]['params'][0]['number']) ) { 742 742 $widget_number = $wp_registered_widgets[$_widget_id]['params'][0]['number']; 743 743 unset($options[$widget_number]); 744 } 744 } 745 745 } 746 746 … … 772 772 <p> 773 773 <label for="categories-title-<?php echo $number; ?>"> 774 <?php _e( 'Title:' ); ?> 774 <?php _e( 'Title:' ); ?> 775 775 <input class="widefat" id="categories-title-<?php echo $number; ?>" name="widget-categories[<?php echo $number; ?>][title]" type="text" value="<?php echo $title; ?>" /> 776 776 </label> … … 1156 1156 else 1157 1157 $this_sidebar = array(); 1158 1158 1159 1159 foreach ( $this_sidebar as $_widget_id ) { 1160 1160 if ( 'wp_widget_rss' == $wp_registered_widgets[$_widget_id]['callback'] && isset($wp_registered_widgets[$_widget_id]['params'][0]['number']) ) { … … 1284 1284 $link = clean_url(strip_tags($rss->channel['link'])); 1285 1285 while ( strstr($link, 'http') != $link ) 1286 $link = substr($link, 1); 1286 $link = substr($link, 1); 1287 1287 } 1288 1288 } … … 1401 1401 $widget_args = wp_parse_args( $widget_args, array( 'number' => -1 ) ); 1402 1402 extract( $widget_args, EXTR_SKIP ); 1403 1403 1404 1404 // Data should be stored as array: array( number => data for that instance of the widget, ... ) 1405 1405 $options = get_option('widget_many');
Note: See TracChangeset
for help on using the changeset viewer.