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
This commit is contained in:
parent
168d6af9ac
commit
2a42d27a22
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue