Plugin Directory

Changeset 3255505


Ignore:
Timestamp:
03/13/2025 04:35:09 PM (13 months ago)
Author:
spiffyplugins
Message:

Version 5.0.4

Location:
spiffy-calendar/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • spiffy-calendar/trunk/includes/admin/update-cleanup.php

    r3254168 r3255505  
    271271            if ($event->event_all_day == 'T') {
    272272                $event->event_time = '';
    273                 $event->event_end_time = '';
     273                if ($event->event_end_time == "00:00:00") $event->event_end_time = '';
     274            } else {
     275                if ($event->event_time == "00:00:00") $event->event_time = '';
     276                if ($event->event_end_time == "00:00:00") $event->event_end_time = '';
    274277            }
    275278           
  • spiffy-calendar/trunk/includes/views.php

    r3253386 r3255505  
    19231923
    19241924        if ($spiffy_calendar->current_options['enable_categories'] == 'true') {
    1925             $calendar_body .= '<table class="spiffy cat-key">';
    1926             $calendar_body .= '<colgroup>
    1927     <col style="width:10px; height:10px;">
    1928     <col>
    1929 </colgroup>';
    1930             $calendar_body .= '
    1931 <tr><td colspan="2" class="cat-key-cell"><strong>'.esc_html($this->format_category( false )).'</strong></td></tr>';
    1932             $filtered_cats = explode(',',$cat_list);
    1933             foreach($this->categories as $cat_detail) {
    1934                 if ( ($cat_list == '') || (in_array($cat_detail->category_id, $filtered_cats))) {
    1935                     $calendar_body .= '<tr><td style="background-color:' . esc_html($cat_detail->category_colour) . '; " class="cat-key-cell"></td>
    1936 <td class="cat-key-cell">&nbsp;'.$cat_detail->category_name.'</td></tr>';
    1937                 }
    1938             }
    1939             $calendar_body .= '</table>';
     1925            $calendar_body .= $this->category_key ($cat_list);
    19401926        }
    19411927
  • spiffy-calendar/trunk/readme.txt

    r3254996 r3255505  
    44Requires at least: 5.3
    55Tested up to: 6.8
    6 Stable tag: 5.0.3
     6Stable tag: 5.0.4
    77License: GPLv2
    88Tags:  calendar,event,responsive,recurring,block
     
    170170== Changelog ==
    171171
     172**Before updating from version 4 to version 5 it is strongly recommended to remove old events**
     173
     174= 5.0.4 (March 13, 2025) =
     175
     176* Fix: incorrect conversion of blank times to new posts
     177* Fix: category key on weekly calendar
     178* Tweak: add missing Settings shortcut to admin bar
     179* Fix: fix publish status if importing old events from CSV
     180
    172181= 5.0.3 (March 12, 2025) =
    173182
  • spiffy-calendar/trunk/spiffy-calendar.php

    r3254996 r3255505  
    44Plugin URI:  http://www.spiffyplugins.ca/spiffycalendar
    55Description: A full featured, simple to use Spiffy Calendar plugin for WordPress that allows you to manage and display your events and appointments.
    6 Version:     5.0.3
     6Version:     5.0.4
    77Author:      Spiffy Plugins
    88Author URI:  http://spiffyplugins.ca
     
    376376                ) );
    377377        }
     378            $wp_admin_bar->add_node( array(
     379                'id'    => 'spiffy_settings_node',
     380                'title' => __('Settings', 'spiffy-calendar'),
     381                'parent' => 'spiffy_main_node',
     382                'href'  => admin_url('edit.php?post_type=spiffy_event&page=settings')
     383                ) );
    378384    }
    379385
     
    452458            $post_status = 'Draft';
    453459        }
     460        // Fix old post status
     461        if ($post_status == 'P') {
     462            $post_status = 'Publish';
     463        } else if ($post_status == 'D') {
     464            $post_status = 'Draft';
     465        } else if ($post_status == 'R') {
     466            $post_status = 'Pending';
     467        }
    454468
    455469        $post = array(
Note: See TracChangeset for help on using the changeset viewer.