From 29907e5f8bcb051225a5679d562a3eced7fafa00 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Wed, 25 Mar 2015 17:34:28 +0000 Subject: [PATCH] Text Widget: Use `!empty()` for checking if the filter setting is set. props westonruter. fixes #31690. Built from https://develop.svn.wordpress.org/trunk@31886 git-svn-id: http://core.svn.wordpress.org/trunk@31865 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/default-widgets.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.