Skip to content

Commit 0729a7d

Browse files
authored
remove requirement of API key for creating group calendar (#719)
1 parent 86d63fe commit 0729a7d

4 files changed

Lines changed: 7 additions & 8 deletions

File tree

assets/js/admin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,13 +212,13 @@
212212
hasGoogleApiKey = String(settingsContentWrap.data('sc-has-google-api-key')) === '1',
213213
hasProAuth = String(settingsContentWrap.data('sc-has-pro-auth')) === '1',
214214
requiredFeedsRaw = settingsContentWrap.attr('data-sc-api-key-required-feeds'),
215-
requiredFeeds = ['google', 'grouped-calendars'];
215+
requiredFeeds = ['google'];
216216

217217
if (requiredFeedsRaw) {
218218
try {
219219
requiredFeeds = JSON.parse(requiredFeedsRaw);
220220
} catch (e) {
221-
requiredFeeds = ['google', 'grouped-calendars'];
221+
requiredFeeds = ['google'];
222222
}
223223
}
224224

includes/admin/metaboxes/settings.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,7 @@ public static function html($post)
5252
$has_own_oauth = !empty(trim((string) get_option('simple-calendar_google-pro-token', '')));
5353
$has_pro_auth = $has_oauth_via_simple_calendar || $has_own_oauth;
5454

55-
$feed_types_needing_api_key = apply_filters('simcal_feed_types_requiring_google_api_key', [
56-
'google',
57-
'grouped-calendars',
58-
'grouped-calendar',
59-
]);
55+
$feed_types_needing_api_key = apply_filters('simcal_feed_types_requiring_google_api_key', ['google']);
6056
$feed_types_needing_api_key = array_values(
6157
array_unique(array_map('sanitize_title', (array) $feed_types_needing_api_key)),
6258
);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "google-calendar-events",
33
"title": "Simple Calendar",
44
"description": "Add Google Calendar events to your WordPress site.",
5-
"version": "4.0.6",
5+
"version": "4.0.7",
66
"license": "GPLv2+",
77
"homepage": "https://simplecalendar.io",
88
"repository": {

readme.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ We'd love your help! Here's a few things you can do:
9797

9898
== Changelog ==
9999

100+
= 4.0.7 =
101+
* Fix: Removed unnecessary Google API key/OAuth requirement when creating a Grouped Calendar.
102+
100103
= 4.0.6 =
101104
* Fix: Optimize admin & fronend performance, throttle OAuth token checks, and reduce redundant API calls.
102105

0 commit comments

Comments
 (0)