Make WordPress Core


Ignore:
Timestamp:
09/13/2012 07:46:24 PM (12 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/default-widgets.php

    r21501 r21841  
    356356    function widget( $args, $instance ) {
    357357        extract($args);
    358         $title = apply_filters('widget_title', empty($instance['title']) ? ' ' : $instance['title'], $instance, $this->id_base);
     358        $title = apply_filters('widget_title', empty($instance['title']) ? '' : $instance['title'], $instance, $this->id_base);
    359359        echo $before_widget;
    360360        if ( $title )
Note: See TracChangeset for help on using the changeset viewer.