WordPress.org

Make WordPress Core

Changeset 11794


Ignore:
Timestamp:
08/09/09 12:32:18 (5 years ago)
Author:
azaozz
Message:

Strip slashes in the text widget for users without the unfiltered_html capability, props jamescollins, fixes #10563

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/default-widgets.php

    r11792 r11794  
    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; 
Note: See TracChangeset for help on using the changeset viewer.