Ticket #5113: 5113.diff
| File 5113.diff, 1.7 KB (added by , 17 years ago) |
|---|
-
Users/denis/Sites/sem-pro/wp-includes/default-widgets.php
334 334 $text = apply_filters( 'widget_text', $instance['text'] ); 335 335 echo $before_widget; 336 336 if ( !empty( $title ) ) { echo $before_title . $title . $after_title; } ?> 337 <div class="textwidget"><?php echo $ text; ?></div>337 <div class="textwidget"><?php echo $instance['filter'] ? wpautop($text) : $text; ?></div> 338 338 <?php 339 339 echo $after_widget; 340 340 } … … 346 346 $instance['text'] = $new_instance['text']; 347 347 else 348 348 $instance['text'] = wp_filter_post_kses( $new_instance['text'] ); 349 $instance['filter'] = isset($new_instance['filter']); 349 350 return $instance; 350 351 } 351 352 … … 356 357 ?> 357 358 <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:'); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p> 358 359 <textarea class="widefat" rows="16" cols="20" id="<?php echo $this->get_field_id('text'); ?>" name="<?php echo $this->get_field_name('text'); ?>"><?php echo $text; ?></textarea> 360 <p><label for="<?php echo $this->get_field_id('filter'); ?>"><input id="<?php echo $this->get_field_id('filter'); ?>" name="<?php echo $this->get_field_name('filter'); ?>" type="checkbox" <?php checked($instance['filter']); ?> /> <?php _e('Automatically add paragraphs.') ?></label></p> 359 361 <?php 360 362 } 361 363 }