summaryrefslogtreecommitdiffstats
path: root/wp-includes/widgets.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/widgets.php')
-rw-r--r--wp-includes/widgets.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/wp-includes/widgets.php b/wp-includes/widgets.php
index 6365261..7eae8b0 100644
--- a/wp-includes/widgets.php
+++ b/wp-includes/widgets.php
@@ -523,12 +523,10 @@ function wp_widget_text($args, $number = 1) {
extract($args);
$options = get_option('widget_text');
$title = $options[$number]['title'];
- if ( empty($title) )
- $title = ' ';
$text = apply_filters( 'the_content', $options[$number]['text'] );
?>
<?php echo $before_widget; ?>
- <?php !empty( $title ) ? print($before_title . $title . $after_title) : null; ?>
+ <?php if ( !empty( $title ) ) { echo $before_title . $title . $after_title; } ?>
<div class="textwidget"><?php echo $text; ?></div>
<?php echo $after_widget; ?>
<?php