diff --git a/wp-includes/default-widgets.php b/wp-includes/default-widgets.php index 1a739851ee..748fc9aee3 100644 --- a/wp-includes/default-widgets.php +++ b/wp-includes/default-widgets.php @@ -533,7 +533,7 @@ class WP_Widget_Text extends WP_Widget { $instance['text'] = $new_instance['text']; else $instance['text'] = stripslashes( wp_filter_post_kses( addslashes($new_instance['text']) ) ); // wp_filter_post_kses() expects slashed - $instance['filter'] = isset($new_instance['filter']); + $instance['filter'] = ! empty( $new_instance['filter'] ); return $instance; } diff --git a/wp-includes/version.php b/wp-includes/version.php index a662595dd5..5c0b884c1f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-beta2-31885'; +$wp_version = '4.2-beta2-31886'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.