Make WordPress Core


Ignore:
Timestamp:
03/18/2009 02:43:45 AM (17 years ago)
Author:
ryan
Message:

Trim trailing whitespace

File:
1 edited

Legend:

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

    r10808 r10810  
    4646/**
    4747 * Singleton that registers and instantiates WP_Widget classes.
    48  * 
     48 *
    4949 * @package WordPress
    5050 * @subpackage Widgets
     
    7171 * This class must be extended for each widget and WP_Widget::widget(), WP_Widget::update()
    7272 * and WP_Widget::form() need to be over-ridden.
    73  * 
     73 *
    7474 * @package WordPress
    7575 * @subpackage Widgets
     
    289289        _register_widget_form_callback( $this->id, $this->name, $this->_get_form_callback(), $this->control_options, array( 'number' => $number ) );
    290290    }
    291    
     291
    292292    function save_settings($settings) {
    293293        $settings['_multiwidget'] = 1;
     
    296296
    297297    function get_settings() {
    298         $settings = get_option($this->option_name); 
     298        $settings = get_option($this->option_name);
    299299
    300300        if ( !is_array($settings) )
     
    315315/**
    316316 * Register a widget
    317  * 
     317 *
    318318 * Registers a WP_Widget widget
    319  * 
     319 *
    320320 * @since 2.8.0
    321  * 
     321 *
    322322 * @see WP_Widget
    323323 * @see WP_Widget_Factory
    324324 * @uses WP_Widget_Factory
    325  * 
     325 *
    326326 * @param string $widget_class The name of a class that extends WP_Widget
    327327 */
     
    923923    if ( $single ) {
    924924        $settings = array( 2 => $settings );
    925        
     925
    926926        $sidebars_widgets = get_option('sidebars_widgets');
    927927        foreach ( (array) $sidebars_widgets as $index => $sidebar ) {
     
    941941    $settings['_multiwidget'] = 1;
    942942    update_option( $option_name, $settings );
    943    
     943
    944944    return $settings;
    945945}
     
    948948 * Deprecated API
    949949 */
    950  
     950
    951951/**
    952952 * Register widget for sidebar with backwards compatibility.
Note: See TracChangeset for help on using the changeset viewer.