From aa2fdd48ae7f1b5812eee578ec2e6f73d8dd95bf Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 13 Sep 2012 19:46:24 +0000 Subject: [PATCH] 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 --- wp-includes/default-widgets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/default-widgets.php b/wp-includes/default-widgets.php index d52574f80d..bf6f8f5240 100644 --- a/wp-includes/default-widgets.php +++ b/wp-includes/default-widgets.php @@ -355,7 +355,7 @@ class WP_Widget_Calendar extends WP_Widget { function widget( $args, $instance ) { 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; if ( $title ) echo $before_title . $title . $after_title;