WordPress.org

Make WordPress Core

Changeset 5499


Ignore:
Timestamp:
05/21/07 13:13:22 (8 years ago)
Author:
rob1n
Message:

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

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/wp-includes/widgets.php

    r5490 r5499  
    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; ?>" /> 
  • trunk/wp-includes/widgets.php

    r5490 r5499  
    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; ?>" /> 
Note: See TracChangeset for help on using the changeset viewer.