diff --git a/wp-includes/default-widgets.php b/wp-includes/default-widgets.php index 160b579f80..09d5811f1c 100644 --- a/wp-includes/default-widgets.php +++ b/wp-includes/default-widgets.php @@ -596,7 +596,7 @@ class WP_Widget_Recent_Posts extends WP_Widget { $instance = $old_instance; $instance['title'] = strip_tags($new_instance['title']); $instance['number'] = (int) $new_instance['number']; - $instance['show_date'] = (bool) $new_instance['show_date']; + $instance['show_date'] = isset( $new_instance['show_date'] ) ? (bool) $new_instance['show_date'] : false; $this->flush_widget_cache(); $alloptions = wp_cache_get( 'alloptions', 'options' );