Making WordPress.org

Ticket #3554: 3554.diff

File 3554.diff, 664 bytes (added by soulseekah, 7 years ago)
  • trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/functions.php

     
    637637
    638638                echo "$start_month $start_day";
    639639
    640                 if ( $end_day ) {
     640                $is_single_day = ( $end_day && ( $start_month == $end_month ) && ( $start_day == $end_day ) );
     641
     642                if ( ! $is_single_day ) {
    641643                        if ( $show_year && $start_year !== $end_year ) {
    642644                                echo ", $start_year";
    643645                        }