Make WordPress Core


Ignore:
Timestamp:
06/23/2013 08:20:08 AM (11 years ago)
Author:
SergeyBiryukov
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/default-widgets.php

    r24213 r24504  
    597597        $instance['title'] = strip_tags($new_instance['title']);
    598598        $instance['number'] = (int) $new_instance['number'];
    599         $instance['show_date'] = (bool) $new_instance['show_date'];
     599        $instance['show_date'] = isset( $new_instance['show_date'] ) ? (bool) $new_instance['show_date'] : false;
    600600        $this->flush_widget_cache();
    601601
Note: See TracChangeset for help on using the changeset viewer.