mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user