WordPress.org

Make WordPress Core

Changeset 21841


Ignore:
Timestamp:
09/13/12 19:46:24 (19 months 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.