mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Revert 23416, 23419, 23445 except for wp_reset_vars() changes. We are going a different direction with the slashing cleanup, so resetting to a clean slate. see #21767
git-svn-id: https://develop.svn.wordpress.org/trunk@23554 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -413,7 +413,7 @@ class WP_Widget_Text extends WP_Widget {
|
||||
if ( current_user_can('unfiltered_html') )
|
||||
$instance['text'] = $new_instance['text'];
|
||||
else
|
||||
$instance['text'] = wp_kses_post( $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;
|
||||
}
|
||||
@@ -1057,8 +1057,8 @@ class WP_Widget_Tag_Cloud extends WP_Widget {
|
||||
}
|
||||
|
||||
function update( $new_instance, $old_instance ) {
|
||||
$instance['title'] = strip_tags( $new_instance['title'] );
|
||||
$instance['taxonomy'] = $new_instance['taxonomy'];
|
||||
$instance['title'] = strip_tags(stripslashes($new_instance['title']));
|
||||
$instance['taxonomy'] = stripslashes($new_instance['taxonomy']);
|
||||
return $instance;
|
||||
}
|
||||
|
||||
@@ -1119,7 +1119,7 @@ class WP_Widget_Tag_Cloud extends WP_Widget {
|
||||
}
|
||||
|
||||
function update( $new_instance, $old_instance ) {
|
||||
$instance['title'] = strip_tags( $new_instance['title'] );
|
||||
$instance['title'] = strip_tags( stripslashes($new_instance['title']) );
|
||||
$instance['nav_menu'] = (int) $new_instance['nav_menu'];
|
||||
return $instance;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user