Make WordPress Core

Ticket #24577: default-widgets.php.patch

File default-widgets.php.patch, 573 bytes (added by jrf, 11 years ago)

Unified patch file for wp-includes/default-widgets.php

  • /wp-includes/

    old new  
    596596                $instance = $old_instance;
    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
    602602                $alloptions = wp_cache_get( 'alloptions', 'options' );