Avoid an undefined index notice in WP_Widget_Recent_Posts::update(). props jrf. fixes #24577.

git-svn-id: https://develop.svn.wordpress.org/trunk@24504 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2013-06-23 08:20:08 +00:00
parent 0e18d28947
commit 7c906b0c38
1 changed files with 1 additions and 1 deletions

View File

@ -596,7 +596,7 @@ class WP_Widget_Recent_Posts extends WP_Widget {
$instance = $old_instance; $instance = $old_instance;
$instance['title'] = strip_tags($new_instance['title']); $instance['title'] = strip_tags($new_instance['title']);
$instance['number'] = (int) $new_instance['number']; $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(); $this->flush_widget_cache();
$alloptions = wp_cache_get( 'alloptions', 'options' ); $alloptions = wp_cache_get( 'alloptions', 'options' );