wp-content/themes/twentyeleven/inc/widgets.php:164Updates widget settings.
$new_instancearray$old_instancearrayarray<string, public function update( $new_instance, $old_instance ) { $instance = $old_instance; $instance['title'] = strip_tags( $new_instance['title'] ); $instance['number'] = (int) $new_instance['number']; $this->flush_widget_cache(); $alloptions = wp_cache_get( 'alloptions', 'options' ); if ( isset( $alloptions['widget_twentyeleven_ephemera'] ) ) { delete_option( 'widget_twentyeleven_ephemera' ); } return $instance; }Introduced in Twenty Eleven 1.0. 3 changes between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$new_instance retyped from untyped to array.verified against source$old_instance retyped from untyped to array.verified against sourcenone to array<string,.verified against sourcesrc/wp-content/themes/twentyeleven/inc/widgets.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.