wp-includes/widgets/class-wp-widget-recent-posts.php:148Handles updating the settings for the current Recent Posts widget instance.
$new_instancearray$old_instancearrayarray public function update( $new_instance, $old_instance ) { $instance = $old_instance; $instance['title'] = sanitize_text_field( $new_instance['title'] ); $instance['number'] = (int) $new_instance['number']; $instance['show_date'] = isset( $new_instance['show_date'] ) ? (bool) $new_instance['show_date'] : false; return $instance; }Introduced in 2.8.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/widgets/class-wp-widget-recent-posts.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.