From b4cc3cfcd56176021189f85229d4722c48bf705e Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Fri, 2 Jan 2015 11:05:06 -0200 Subject: [PATCH] Improved the widget title --- includes/abstracts/abstract-wc-widget.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/abstracts/abstract-wc-widget.php b/includes/abstracts/abstract-wc-widget.php index 11778542022..918c155341f 100644 --- a/includes/abstracts/abstract-wc-widget.php +++ b/includes/abstracts/abstract-wc-widget.php @@ -112,8 +112,7 @@ abstract class WC_Widget extends WP_Widget { public function widget_start( $args, $instance ) { echo $args['before_widget']; - $default = isset( $this->settings['title']['std'] ) ? $this->settings['title']['std'] : ''; - if ( $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? $default : $instance['title'], $instance, $this->id_base ) ) { + if ( $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base ) ) { echo $args['before_title'] . $title . $args['after_title']; } }