Fix slashes in the Text widget, props Denis-de-Bernardy, fixes #10563

git-svn-id: https://develop.svn.wordpress.org/trunk@12364 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2009-12-10 09:54:15 +00:00
parent 139414023c
commit 917d2e345f
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'] = stripslashes( wp_filter_post_kses( $new_instance['text'] ) );
$instance['text'] = stripslashes( wp_filter_post_kses( addslashes($new_instance['text']) ) ); // wp_filter_post_kses() expects slashed
$instance['filter'] = isset($new_instance['filter']);
return $instance;
}