WordPress.org

Make WordPress Core

Ticket #9450: 9450-calendar.diff

File 9450-calendar.diff, 859 bytes (added by Denis-de-Bernardy, 9 years ago)

fix calendar only

  • Users/denis/Sites/sem-pro/wp-includes/default-widgets.php

     
    291291
    292292        function widget( $args, $instance ) {
    293293                extract($args);
    294                 $title = empty($instance['title']) ? ' ' : apply_filters('widget_title', $instance['title']);
    295                 echo $before_widget . $before_title . $title . $after_title;
    296                 echo '<div id="calendar_wrap">';
     294                $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']);
     295                echo $before_widget;
     296                if ( $title )
     297                        echo $before_title . $title . $after_title;
     298                echo '<div class="calendar_wrap">';
    297299                get_calendar();
    298300                echo '</div>';
    299301                echo $after_widget;