Strip slashes in the text widget for users without the unfiltered_html capability, props jamescollins, fixes #10563

git-svn-id: https://develop.svn.wordpress.org/trunk@11794 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2009-08-09 12:32:18 +00:00
parent 51a0906688
commit 962116a319
1 changed files with 1 additions and 1 deletions

View File

@ -391,7 +391,7 @@ class WP_Widget_Text extends WP_Widget {
if ( current_user_can('unfiltered_html') )
$instance['text'] = $new_instance['text'];
else
$instance['text'] = wp_filter_post_kses( $new_instance['text'] );
$instance['text'] = stripslashes( wp_filter_post_kses( $new_instance['text'] ) );
$instance['filter'] = isset($new_instance['filter']);
return $instance;
}