Simple Calendar – Google Calendar Plugin - Version 2.0.6.2

Version Description

  • Reverted previous bug fix that introduced new bugs.
Download this release

Release Info

Developer pderksen
Plugin Icon 128x128 Simple Calendar – Google Calendar Plugin
Version 2.0.6.2
Comparing to
See all releases

Code changes from version 2.0.6.1 to 2.0.6.2

README.txt CHANGED
@@ -85,6 +85,10 @@ There are three ways to install this plugin.
85
 
86
  == Changelog ==
87
 
 
 
 
 
88
  = 2.0.6.1 =
89
 
90
  * Added Polish translation.
85
 
86
  == Changelog ==
87
 
88
+ = 2.0.6.2 =
89
+
90
+ * Reverted previous bug fix that introduced new bugs.
91
+
92
  = 2.0.6.1 =
93
 
94
  * Added Polish translation.
class-google-calendar-events.php CHANGED
@@ -18,7 +18,7 @@ class Google_Calendar_Events {
18
  *
19
  * @var string
20
  */
21
- protected $version = '2.0.6.1';
22
 
23
  /**
24
  * Unique identifier for the plugin.
18
  *
19
  * @var string
20
  */
21
+ protected $version = '2.0.6.2';
22
 
23
  /**
24
  * Unique identifier for the plugin.
google-calendar-events.php CHANGED
@@ -12,7 +12,7 @@
12
  * Plugin Name: Google Calendar Events
13
  * Plugin URI: https://github.com/pderksen/WP-Google-Calendar-Events
14
  * Description: Parses Google Calendar feeds and displays the events as a calendar grid or list on a page, post or widget.
15
- * Version: 2.0.6.1
16
  * Author: Phil Derksen
17
  * Author URI: http://philderksen.com
18
  * License: GPL-2.0+
12
  * Plugin Name: Google Calendar Events
13
  * Plugin URI: https://github.com/pderksen/WP-Google-Calendar-Events
14
  * Description: Parses Google Calendar feeds and displays the events as a calendar grid or list on a page, post or widget.
15
+ * Version: 2.0.6.2
16
  * Author: Phil Derksen
17
  * Author URI: http://philderksen.com
18
  * License: GPL-2.0+
includes/class-gce-feed.php CHANGED
@@ -169,8 +169,8 @@ class GCE_Feed {
169
  $description = ( isset( $event['content']['$t'] ) ? esc_html( $event['content']['$t'] ) : '' );
170
  $link = ( isset( $event['link'][0]['href'] ) ? esc_url( $event['link'][0]['href'] ) : '' );
171
  $location = ( isset( $event['gd$where'][0]['valueString'] ) ? esc_html( $event['gd$where'][0]['valueString'] ) : '' );
172
- $start_time = $event['gd$when'][0]['startTime'];
173
- $end_time = $event['gd$when'][0]['endTime'];
174
 
175
  //Create a GCE_Event using the above data. Add it to the array of events
176
  $this->events[] = new GCE_Event( $this, $id, $title, $description, $location, $start_time, $end_time, $link );
169
  $description = ( isset( $event['content']['$t'] ) ? esc_html( $event['content']['$t'] ) : '' );
170
  $link = ( isset( $event['link'][0]['href'] ) ? esc_url( $event['link'][0]['href'] ) : '' );
171
  $location = ( isset( $event['gd$where'][0]['valueString'] ) ? esc_html( $event['gd$where'][0]['valueString'] ) : '' );
172
+ $start_time = ( isset( $event['gd$when'][0]['startTime'] ) ? $this->iso_to_ts( $event['gd$when'][0]['startTime'] ) : '' );
173
+ $end_time = ( isset( $event['gd$when'][0]['endTime'] ) ? $this->iso_to_ts( $event['gd$when'][0]['endTime'] ) : '' );
174
 
175
  //Create a GCE_Event using the above data. Add it to the array of events
176
  $this->events[] = new GCE_Event( $this, $id, $title, $description, $location, $start_time, $end_time, $link );