diff --git a/src/wp-includes/widgets/class-wp-widget-recent-posts.php b/src/wp-includes/widgets/class-wp-widget-recent-posts.php index a81474fb0c..0d4606ea16 100644 --- a/src/wp-includes/widgets/class-wp-widget-recent-posts.php +++ b/src/wp-includes/widgets/class-wp-widget-recent-posts.php @@ -107,7 +107,7 @@ class WP_Widget_Recent_Posts extends WP_Widget { */ public function update( $new_instance, $old_instance ) { $instance = $old_instance; - $instance['title'] = santize_text_field( $new_instance['title'] ); + $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; $this->flush_widget_cache();