WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/17/2010 05:12:01 PM (11 years ago)
Author:
markjaquith
Message:

esc_textarea() and application for obvious textarea escaping. props alexkingorg. fixes #15454

File:
1 edited

Legend:

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

    r16013 r16431  
    400400        $instance = wp_parse_args( (array) $instance, array( 'title' => '', 'text' => '' ) );
    401401        $title = strip_tags($instance['title']);
    402         $text = format_to_edit($instance['text']);
     402        $text = esc_textarea($instance['text']);
    403403?>
    404404        <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:'); ?></label>
Note: See TracChangeset for help on using the changeset viewer.