From 2a42d27a225c4b607e260a98916dcc06130f806d Mon Sep 17 00:00:00 2001 From: azaozz Date: Thu, 10 Dec 2009 09:54:15 +0000 Subject: [PATCH] Fix slashes in the Text widget, props Denis-de-Bernardy, fixes #10563 git-svn-id: http://svn.automattic.com/wordpress/trunk@12364 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/default-widgets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/default-widgets.php b/wp-includes/default-widgets.php index 6f9d16b51a..6dcf8225fe 100644 --- a/wp-includes/default-widgets.php +++ b/wp-includes/default-widgets.php @@ -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; }