Make WordPress Core


Ignore:
Timestamp:
05/24/2009 11:47:49 PM (15 years ago)
Author:
ryan
Message:

Trim tailing whitespace

File:
1 edited

Legend:

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

    r11427 r11450  
    174174            $settings = $settings[$this->number];
    175175            // filters the widget's settings, return false to stop displaying the widget
    176             $settings = apply_filters('widget_display_callback', $settings, $this, $args);   
     176            $settings = apply_filters('widget_display_callback', $settings, $this, $args);
    177177            if ( false !== $settings )
    178178                $this->widget($args, $settings);
     
    286286    function get_settings() {
    287287        $settings = get_option($this->option_name);
    288        
     288
    289289        if ( false === $settings && isset($this->alt_option_name) )
    290290            $settings = get_option($this->alt_option_name);
     
    773773    $did_one = false;
    774774    foreach ( (array) $sidebars_widgets[$index] as $id ) {
    775        
     775
    776776        if ( !isset($wp_registered_widgets[$id]) ) continue;
    777        
     777
    778778        $params = array_merge(
    779779            array( array_merge( $sidebar, array('widget_id' => $id, 'widget_name' => $wp_registered_widgets[$id]['name']) ) ),
     
    814814 * With the $widget_id parameter, returns the ID of the sidebar where
    815815 * the widget with that callback/$id_base AND that ID is found.
    816  * 
     816 *
    817817 * NOTE: $widget_id and $id_base are the same for single widgets. To be effective
    818818 * this function has to run after widgets have initialized, at action 'init' or later.
     
    835835            if ( $skip_inactive && 'wp_inactive_widgets' == $sidebar )
    836836                continue;
    837            
     837
    838838            if ( is_array($widgets) ) {
    839839                foreach ( $widgets as $widget ) {
     
    879879function is_active_sidebar( $index ) {
    880880    $index = ( is_int($index) ) ? "sidebar-$index" : sanitize_title($index);
    881     $sidebars_widgets = get_option( 'sidebars_widgets', array() ); 
    882     if ( isset($sidebars_widgets[$index]) && !empty($sidebars_widgets[$index]) ) 
     881    $sidebars_widgets = get_option( 'sidebars_widgets', array() );
     882    if ( isset($sidebars_widgets[$index]) && !empty($sidebars_widgets[$index]) )
    883883        return true;
    884884
     
    10571057            $sidebars_widgets = &$GLOBALS['_wp_sidebars_widgets'];
    10581058        }
    1059        
     1059
    10601060        foreach ( (array) $sidebars_widgets as $index => $sidebar ) {
    10611061            if ( is_array($sidebar) ) {
Note: See TracChangeset for help on using the changeset viewer.