Make WordPress Core


Ignore:
Timestamp:
02/05/2008 06:47:27 AM (17 years ago)
Author:
ryan
Message:

Trailing whitespace cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/widgets.php

    r6717 r6726  
    731731    if ( !$updated && !empty($_POST['sidebar']) ) {
    732732        $sidebar = (string) $_POST['sidebar'];
    733        
     733
    734734        $sidebars_widgets = wp_get_sidebars_widgets();
    735735        if ( isset($sidebars_widgets[$sidebar]) )
     
    737737        else
    738738            $this_sidebar = array();
    739        
     739
    740740        foreach ( $this_sidebar as $_widget_id ) {
    741741            if ( 'wp_widget_categories' == $wp_registered_widgets[$_widget_id]['callback'] && isset($wp_registered_widgets[$_widget_id]['params'][0]['number']) ) {
    742742                $widget_number = $wp_registered_widgets[$_widget_id]['params'][0]['number'];
    743743                unset($options[$widget_number]);
    744             }   
     744            }
    745745        }
    746746
     
    772772            <p>
    773773                <label for="categories-title-<?php echo $number; ?>">
    774                     <?php _e( 'Title:' ); ?> 
     774                    <?php _e( 'Title:' ); ?>
    775775                    <input class="widefat" id="categories-title-<?php echo $number; ?>" name="widget-categories[<?php echo $number; ?>][title]" type="text" value="<?php echo $title; ?>" />
    776776                </label>
     
    11561156        else
    11571157            $this_sidebar = array();
    1158    
     1158
    11591159        foreach ( $this_sidebar as $_widget_id ) {
    11601160            if ( 'wp_widget_rss' == $wp_registered_widgets[$_widget_id]['callback'] && isset($wp_registered_widgets[$_widget_id]['params'][0]['number']) ) {
     
    12841284            $link = clean_url(strip_tags($rss->channel['link']));
    12851285            while ( strstr($link, 'http') != $link )
    1286                 $link = substr($link, 1);           
     1286                $link = substr($link, 1);
    12871287        }
    12881288    }
     
    14011401    $widget_args = wp_parse_args( $widget_args, array( 'number' => -1 ) );
    14021402    extract( $widget_args, EXTR_SKIP );
    1403    
     1403
    14041404    // Data should be stored as array:  array( number => data for that instance of the widget, ... )
    14051405    $options = get_option('widget_many');
Note: See TracChangeset for help on using the changeset viewer.