Text Widget: Use !empty() for checking if the filter setting is set.

props westonruter.
fixes #31690.

git-svn-id: https://develop.svn.wordpress.org/trunk@31886 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling (ocean90) 2015-03-25 17:33:49 +00:00
parent 7a5073020d
commit de328f1a88

View File

@ -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;
}