WordPress.org

Make WordPress Core

Ticket #10563: 10563.diff

File 10563.diff, 576 bytes (added by jamescollins, 6 years ago)

Patch against trunk r11784

  • wp-includes/default-widgets.php

     
    391391                if ( current_user_can('unfiltered_html') ) 
    392392                        $instance['text'] =  $new_instance['text']; 
    393393                else 
    394                         $instance['text'] = wp_filter_post_kses( $new_instance['text'] ); 
     394                        $instance['text'] = stripslashes( wp_filter_post_kses( $new_instance['text'] ) ); 
    395395                $instance['filter'] = isset($new_instance['filter']); 
    396396                return $instance; 
    397397        }