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