Changeset 23416 for trunk/wp-includes/default-widgets.php
- Timestamp:
- 02/14/2013 10:51:06 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/default-widgets.php
r23413 r23416 413 413 $instance['text'] = $new_instance['text']; 414 414 else 415 $instance['text'] = stripslashes( wp_filter_post_kses( addslashes($new_instance['text']) ) ); // wp_filter_post_kses() expects slashed415 $instance['text'] = wp_kses_post( $new_instance['text'] ); 416 416 $instance['filter'] = isset($new_instance['filter']); 417 417 return $instance; … … 1057 1057 1058 1058 function update( $new_instance, $old_instance ) { 1059 $instance['title'] = strip_tags( stripslashes($new_instance['title']));1060 $instance['taxonomy'] = stripslashes($new_instance['taxonomy']);1059 $instance['title'] = strip_tags( $new_instance['title'] ); 1060 $instance['taxonomy'] = $new_instance['taxonomy']; 1061 1061 return $instance; 1062 1062 } … … 1119 1119 1120 1120 function update( $new_instance, $old_instance ) { 1121 $instance['title'] = strip_tags( stripslashes($new_instance['title']));1121 $instance['title'] = strip_tags( $new_instance['title'] ); 1122 1122 $instance['nav_menu'] = (int) $new_instance['nav_menu']; 1123 1123 return $instance;
Note: See TracChangeset
for help on using the changeset viewer.