Changeset 36622 for trunk/src/wp-includes/widgets/class-wp-widget-text.php
- Timestamp:
- 02/23/2016 01:01:43 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets/class-wp-widget-text.php
r34609 r36622 81 81 $instance = $old_instance; 82 82 $instance['title'] = sanitize_text_field( $new_instance['title'] ); 83 if ( current_user_can('unfiltered_html') ) 84 $instance['text'] = $new_instance['text']; 85 else 86 $instance['text'] = wp_kses_post( stripslashes( $new_instance['text'] ) ); 83 if ( current_user_can( 'unfiltered_html' ) ) { 84 $instance['text'] = $new_instance['text']; 85 } else { 86 $instance['text'] = wp_kses_post( $new_instance['text'] ); 87 } 87 88 $instance['filter'] = ! empty( $new_instance['filter'] ); 88 89 return $instance;
Note: See TracChangeset
for help on using the changeset viewer.