Ticket #18595: 18595.2.patch
File 18595.2.patch, 1.3 KB (added by , 14 years ago) |
---|
-
wp-includes/default-widgets.php
177 177 178 178 function widget( $args, $instance ) { 179 179 extract($args); 180 $title = apply_filters( 'widget_title', $instance['title'], $instance, $this->id_base);180 $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base ); 181 181 182 182 echo $before_widget; 183 183 if ( $title ) … … 379 379 $text = apply_filters( 'widget_text', $instance['text'], $instance ); 380 380 echo $before_widget; 381 381 if ( !empty( $title ) ) { echo $before_title . $title . $after_title; } ?> 382 <div class="textwidget"><?php echo $instance['filter']? wpautop($text) : $text; ?></div>382 <div class="textwidget"><?php echo !empty( $instance['filter'] ) ? wpautop($text) : $text; ?></div> 383 383 <?php 384 384 echo $after_widget; 385 385 } … … 1064 1064 if ( !$nav_menu ) 1065 1065 return; 1066 1066 1067 $instance['title'] = apply_filters( 'widget_title', $instance['title'], $instance, $this->id_base);1067 $instance['title'] = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base ); 1068 1068 1069 1069 echo $args['before_widget']; 1070 1070