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:
parent
48a8abb534
commit
1b8ddc740f
|
@ -549,7 +549,7 @@ function wp_widget_text_control($number) {
|
||||||
update_option('widget_text', $options);
|
update_option('widget_text', $options);
|
||||||
}
|
}
|
||||||
$title = attribute_escape($options[$number]['title']);
|
$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; ?>" />
|
<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>
|
<textarea style="width: 450px; height: 280px;" id="text-text-<?php echo $number; ?>" name="text-text-<?php echo $number; ?>"><?php echo $text; ?></textarea>
|
||||||
|
|
Loading…
Reference in New Issue