Changeset 23554 for trunk/wp-includes/default-widgets.php
- Timestamp:
- 03/01/2013 04:28:40 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/default-widgets.php
r23454 r23554 414 414 $instance['text'] = $new_instance['text']; 415 415 else 416 $instance['text'] = wp_kses_post( $new_instance['text'] );416 $instance['text'] = stripslashes( wp_filter_post_kses( addslashes($new_instance['text']) ) ); // wp_filter_post_kses() expects slashed 417 417 $instance['filter'] = isset($new_instance['filter']); 418 418 return $instance; … … 1058 1058 1059 1059 function update( $new_instance, $old_instance ) { 1060 $instance['title'] = strip_tags( $new_instance['title']);1061 $instance['taxonomy'] = $new_instance['taxonomy'];1060 $instance['title'] = strip_tags(stripslashes($new_instance['title'])); 1061 $instance['taxonomy'] = stripslashes($new_instance['taxonomy']); 1062 1062 return $instance; 1063 1063 } … … 1120 1120 1121 1121 function update( $new_instance, $old_instance ) { 1122 $instance['title'] = strip_tags( $new_instance['title']);1122 $instance['title'] = strip_tags( stripslashes($new_instance['title']) ); 1123 1123 $instance['nav_menu'] = (int) $new_instance['nav_menu']; 1124 1124 return $instance;
Note: See TracChangeset
for help on using the changeset viewer.