Pass text widget text through format_to_edit. Props Ryan. fixes #4302

git-svn-id: http://svn.automattic.com/wordpress/branches/2.2@5499 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rob1n 2007-05-21 13:13:22 +00:00
parent 48a8abb534
commit 1b8ddc740f
1 changed files with 1 additions and 1 deletions

View File

@ -549,7 +549,7 @@ function wp_widget_text_control($number) {
update_option('widget_text', $options);
}
$title = attribute_escape($options[$number]['title']);
$text = attribute_escape($options[$number]['text']);
$text = format_to_edit($options[$number]['text']);
?>
<input style="width: 450px;" id="text-title-<?php echo $number; ?>" name="text-title-<?php echo $number; ?>" type="text" value="<?php echo $title; ?>" />
<textarea style="width: 450px; height: 280px;" id="text-text-<?php echo $number; ?>" name="text-text-<?php echo $number; ?>"><?php echo $text; ?></textarea>