diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-05-22 13:18:32 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-05-22 13:18:32 +0000 |
commit | 5776762bbd3841c2e90782cdaea848f032929009 (patch) | |
tree | 61e80ca4413bb331a4c95c2c5e0c3590eca9226e /wp-includes/widgets.php | |
parent | 1baf0ee59faa48a1febb8131ced3348ab14c2ce8 (diff) | |
download | wordpress-mu-5776762bbd3841c2e90782cdaea848f032929009.tar.gz wordpress-mu-5776762bbd3841c2e90782cdaea848f032929009.tar.xz wordpress-mu-5776762bbd3841c2e90782cdaea848f032929009.zip |
WP Merge 5509
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@976 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/widgets.php')
-rw-r--r-- | wp-includes/widgets.php | 4 |
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 |