Calendar widget: Don't print widget title markup when the title is empty. props jakub.tyrcha. fixes #17837.

git-svn-id: http://core.svn.wordpress.org/trunk@21841 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2012-09-13 19:46:24 +00:00
parent 19d165059d
commit aa2fdd48ae
1 changed files with 1 additions and 1 deletions

View File

@ -355,7 +355,7 @@ class WP_Widget_Calendar extends WP_Widget {
function widget( $args, $instance ) { function widget( $args, $instance ) {
extract($args); extract($args);
$title = apply_filters('widget_title', empty($instance['title']) ? ' ' : $instance['title'], $instance, $this->id_base); $title = apply_filters('widget_title', empty($instance['title']) ? '' : $instance['title'], $instance, $this->id_base);
echo $before_widget; echo $before_widget;
if ( $title ) if ( $title )
echo $before_title . $title . $after_title; echo $before_title . $title . $after_title;