library/Widget/Source/BaseWidget.php
public function update($new_instance, $old_instance)
    {
        $instance = array();
        $instance['title'] = (! empty($new_instance['title'])) ? strip_tags($new_instance['title']) : '';
        return $instance;
    }
public function update($new_instance, $old_instance)
    {
        $instance = array();
        $instance['title'] = (! empty($new_instance['title'])) ? strip_tags($new_instance['title']) : '';
        return $instance;
    }
public function update ( $ new_instance , $ old_instance ) { $ instance = array ( ) ; $ instance [ 'title' ] = ( ! empty ( $ new_instance [ 'title' ] ) ) ? strip_tags ( $ new_instance [ 'title' ] ) : '' ; return $ instance ; }
Updates a particular instance of a widget.

This function should check that `$new_instance` is set correctly. The newly-calculated
value of `$instance` should be returned. If false is returned, the instance won't be
saved/updated.


@param array $new_instance New settings for this instance as input by the user via
WP_Widget::form().
@param array $old_instance Old settings for this instance.
@return array Settings to save or bool false to cancel saving.
Updates a particular instance of a widget .