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:
parent
0e18d28947
commit
7c906b0c38
@ -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' );
|
||||
|
Loading…
Reference in New Issue
Block a user