WordPress.org

Make WordPress Core

Ticket #4302: format_to_edit.diff

File format_to_edit.diff, 741 bytes (added by ryan, 13 years ago)

Pass widget text through format to edit

  • wp-includes/widgets.php

     
    549549                update_option('widget_text', $options);
    550550        }
    551551        $title = attribute_escape($options[$number]['title']);
    552         $text = attribute_escape($options[$number]['text']);
     552        $text = format_to_edit($options[$number]['text']);
    553553?>
    554554                        <input style="width: 450px;" id="text-title-<?php echo $number; ?>" name="text-title-<?php echo $number; ?>" type="text" value="<?php echo $title; ?>" />
    555555                        <textarea style="width: 450px; height: 280px;" id="text-text-<?php echo $number; ?>" name="text-text-<?php echo $number; ?>"><?php echo $text; ?></textarea>