Version Description
March 17, 2015 =
The option to always enqueue scripts & styles should now be enabled by default for new installs and upgrades.
Download this release
Release Info
Developer | pderksen |
Plugin | Simple Calendar – Google Calendar Plugin |
Version | 2.2.2.1 |
Comparing to | |
See all releases |
Code changes from version 2.2.2 to 2.2.2.1
- README.txt +4 -0
- class-google-calendar-events.php +1 -1
- google-calendar-events.php +1 -1
- includes/admin/upgrade.php +14 -0
README.txt
CHANGED
@@ -89,6 +89,10 @@ There are three ways to install this plugin.
|
|
89 |
|
90 |
== Changelog ==
|
91 |
|
|
|
|
|
|
|
|
|
92 |
= 2.2.2 - March 15, 2015 =
|
93 |
|
94 |
* Added option to always enqueue scripts and styles on every post and page.
|
89 |
|
90 |
== Changelog ==
|
91 |
|
92 |
+
= 2.2.2.1 - March 17, 2015 =
|
93 |
+
|
94 |
+
* The option to always enqueue scripts & styles should now be enabled by default for new installs and upgrades.
|
95 |
+
|
96 |
= 2.2.2 - March 15, 2015 =
|
97 |
|
98 |
* Added option to always enqueue scripts and styles on every post and page.
|
class-google-calendar-events.php
CHANGED
@@ -18,7 +18,7 @@ class Google_Calendar_Events {
|
|
18 |
*
|
19 |
* @var string
|
20 |
*/
|
21 |
-
protected $version = '2.2.2';
|
22 |
|
23 |
/**
|
24 |
* Unique identifier for the plugin.
|
18 |
*
|
19 |
* @var string
|
20 |
*/
|
21 |
+
protected $version = '2.2.2.1';
|
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: Show off your Google calendar in grid (month) or list view, in a post, page or widget, and in a style that matches your site.
|
15 |
-
* Version: 2.2.2
|
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: Show off your Google calendar in grid (month) or list view, in a post, page or widget, and in a style that matches your site.
|
15 |
+
* Version: 2.2.2.1
|
16 |
* Author: Phil Derksen
|
17 |
* Author URI: http://philderksen.com
|
18 |
* License: GPL-2.0+
|
includes/admin/upgrade.php
CHANGED
@@ -48,6 +48,10 @@ function gce_upgrade() {
|
|
48 |
if( version_compare( $version, '2.2.0', '<' ) ) {
|
49 |
gce_v220_upgrade();
|
50 |
}
|
|
|
|
|
|
|
|
|
51 |
}
|
52 |
|
53 |
$new_version = Google_Calendar_Events::get_instance()->get_plugin_version();
|
@@ -56,6 +60,16 @@ function gce_upgrade() {
|
|
56 |
add_option( 'gce_upgrade_has_run', 1 );
|
57 |
}
|
58 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
function gce_v220_upgrade() {
|
60 |
// Update feeds
|
61 |
$q = new WP_Query( 'post_type=gce_feed' );
|
48 |
if( version_compare( $version, '2.2.0', '<' ) ) {
|
49 |
gce_v220_upgrade();
|
50 |
}
|
51 |
+
|
52 |
+
if( version_compare( $version, '2.2.2', '<' ) ) {
|
53 |
+
gce_v222_upgrade();
|
54 |
+
}
|
55 |
}
|
56 |
|
57 |
$new_version = Google_Calendar_Events::get_instance()->get_plugin_version();
|
60 |
add_option( 'gce_upgrade_has_run', 1 );
|
61 |
}
|
62 |
|
63 |
+
function gce_v222_upgrade() {
|
64 |
+
// Need to set the new option for always enqueuing scripts as default enabled for upgrading users
|
65 |
+
$options = get_option( 'gce_settings_general' );
|
66 |
+
|
67 |
+
if( false !== $options ) {
|
68 |
+
$options['always_enqueue'] = 1;
|
69 |
+
update_option( 'gce_settings_general', $options );
|
70 |
+
}
|
71 |
+
}
|
72 |
+
|
73 |
function gce_v220_upgrade() {
|
74 |
// Update feeds
|
75 |
$q = new WP_Query( 'post_type=gce_feed' );
|