Simple Calendar – Google Calendar Plugin - Version 3.1.35

Version Description

  • Fix: Get rid of empty needle PHP warning
Download this release

Release Info

Developer sureswiftcapital
Plugin Icon 128x128 Simple Calendar – Google Calendar Plugin
Version 3.1.35
Comparing to
See all releases

Code changes from version 3.1.34 to 3.1.35

assets/css/admin-add-calendar.min.css CHANGED
@@ -1,4 +1,4 @@
1
- /*! Simple Calendar - 3.1.34
2
  * https://simplecalendar.io
3
  * Copyright (c) Moonstone Media 2021
4
  * Licensed GPLv2+ */
1
+ /*! Simple Calendar - 3.1.35
2
  * https://simplecalendar.io
3
  * Copyright (c) Moonstone Media 2021
4
  * Licensed GPLv2+ */
assets/css/admin.min.css CHANGED
@@ -1,4 +1,4 @@
1
- /*! Simple Calendar - 3.1.34
2
  * https://simplecalendar.io
3
  * Copyright (c) Moonstone Media 2021
4
  * Licensed GPLv2+ */
1
+ /*! Simple Calendar - 3.1.35
2
  * https://simplecalendar.io
3
  * Copyright (c) Moonstone Media 2021
4
  * Licensed GPLv2+ */
assets/css/default-calendar-grid.min.css CHANGED
@@ -1,4 +1,4 @@
1
- /*! Simple Calendar - 3.1.34
2
  * https://simplecalendar.io
3
  * Copyright (c) Moonstone Media 2021
4
  * Licensed GPLv2+ */
1
+ /*! Simple Calendar - 3.1.35
2
  * https://simplecalendar.io
3
  * Copyright (c) Moonstone Media 2021
4
  * Licensed GPLv2+ */
assets/css/default-calendar-list.min.css CHANGED
@@ -1,4 +1,4 @@
1
- /*! Simple Calendar - 3.1.34
2
  * https://simplecalendar.io
3
  * Copyright (c) Moonstone Media 2021
4
  * Licensed GPLv2+ */
1
+ /*! Simple Calendar - 3.1.35
2
  * https://simplecalendar.io
3
  * Copyright (c) Moonstone Media 2021
4
  * Licensed GPLv2+ */
assets/js/admin-add-calendar.min.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! Simple Calendar - 3.1.34
2
  * https://simplecalendar.io
3
  * Copyright (c) Moonstone Media 2021
4
  * Licensed GPLv2+ */
1
+ /*! Simple Calendar - 3.1.35
2
  * https://simplecalendar.io
3
  * Copyright (c) Moonstone Media 2021
4
  * Licensed GPLv2+ */
assets/js/admin.min.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! Simple Calendar - 3.1.34
2
  * https://simplecalendar.io
3
  * Copyright (c) Moonstone Media 2021
4
  * Licensed GPLv2+ */
1
+ /*! Simple Calendar - 3.1.35
2
  * https://simplecalendar.io
3
  * Copyright (c) Moonstone Media 2021
4
  * Licensed GPLv2+ */
assets/js/default-calendar.min.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! Simple Calendar - 3.1.34
2
  * https://simplecalendar.io
3
  * Copyright (c) Moonstone Media 2021
4
  * Licensed GPLv2+ */
1
+ /*! Simple Calendar - 3.1.35
2
  * https://simplecalendar.io
3
  * Copyright (c) Moonstone Media 2021
4
  * Licensed GPLv2+ */
google-calendar-events.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Add Google Calendar events to your WordPress site in minutes. Beautiful calendar displays. Fully responsive.
6
  * Author: Simple Calendar
7
  * Author URI: https://simplecalendar.io
8
- * Version: 3.1.34
9
  * Text Domain: google-calendar-events
10
  * Domain Path: /i18n
11
  *
@@ -21,7 +21,7 @@ if ( ! defined( 'ABSPATH' ) ) {
21
  $this_plugin_path = trailingslashit( dirname( __FILE__ ) );
22
  $this_plugin_dir = plugin_dir_url( __FILE__ );
23
  $this_plugin_constants = array(
24
- 'SIMPLE_CALENDAR_VERSION' => '3.1.34',
25
  'SIMPLE_CALENDAR_MAIN_FILE' => __FILE__,
26
  'SIMPLE_CALENDAR_URL' => $this_plugin_dir,
27
  'SIMPLE_CALENDAR_ASSETS' => $this_plugin_dir . 'assets/',
5
  * Description: Add Google Calendar events to your WordPress site in minutes. Beautiful calendar displays. Fully responsive.
6
  * Author: Simple Calendar
7
  * Author URI: https://simplecalendar.io
8
+ * Version: 3.1.35
9
  * Text Domain: google-calendar-events
10
  * Domain Path: /i18n
11
  *
21
  $this_plugin_path = trailingslashit( dirname( __FILE__ ) );
22
  $this_plugin_dir = plugin_dir_url( __FILE__ );
23
  $this_plugin_constants = array(
24
+ 'SIMPLE_CALENDAR_VERSION' => '3.1.35',
25
  'SIMPLE_CALENDAR_MAIN_FILE' => __FILE__,
26
  'SIMPLE_CALENDAR_URL' => $this_plugin_dir,
27
  'SIMPLE_CALENDAR_ASSETS' => $this_plugin_dir . 'assets/',
includes/feeds/google.php CHANGED
@@ -368,7 +368,7 @@ class Google extends Feed {
368
  }
369
 
370
  // Custom OR search since Google API doesn't support the OR search for calendar events
371
- if ( isset( $calendar['events'] ) ) {
372
 
373
  $events = array();
374
  $search_query = explode( strtolower( ' OR ' ), strtolower( $this->google_search_query ) );
@@ -380,8 +380,10 @@ class Google extends Feed {
380
  $search_found = false;
381
 
382
  for( $i = 0; $i < count( $search_query ); $i++ ) {
383
- if ( strpos( strtolower( $k2['title'] ), $search_query[ $i ] ) !== false ||
384
- strpos( strtolower( $k2['description'] ), $search_query[ $i ] ) !== false ) {
 
 
385
  $search_found = true;
386
  }
387
  }
368
  }
369
 
370
  // Custom OR search since Google API doesn't support the OR search for calendar events
371
+ if ( isset( $calendar['events'] ) && ! empty( $this->google_search_query ) ) {
372
 
373
  $events = array();
374
  $search_query = explode( strtolower( ' OR ' ), strtolower( $this->google_search_query ) );
380
  $search_found = false;
381
 
382
  for( $i = 0; $i < count( $search_query ); $i++ ) {
383
+ $title_check = ! empty( $k2['title'] ) ? strpos( strtolower( $k2['title'] ), $search_query[ $i ] ) : false;
384
+ $description_check = ! empty( $k2['description'] ) ? strpos( strtolower( $k2['description'] ), $search_query[ $i ] ) : false;
385
+
386
+ if ( $title_check !== false || $description_check !== false ) {
387
  $search_found = true;
388
  }
389
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: google calendar, calendar, calendars, google, event calendar, custom calen
4
  Requires at least: 4.2
5
  Requires PHP: 7.3
6
  Tested up to: 5.6
7
- Stable tag: 3.1.34
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -97,6 +97,9 @@ We'd love your help! Here's a few things you can do:
97
 
98
  == Changelog ==
99
 
 
 
 
100
  = 3.1.34 =
101
  * Dev: Tested up to WordPress 5.6
102
  * Fix: OR searches will now work as OR, not as AND
4
  Requires at least: 4.2
5
  Requires PHP: 7.3
6
  Tested up to: 5.6
7
+ Stable tag: 3.1.35
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
97
 
98
  == Changelog ==
99
 
100
+ = 3.1.35 =
101
+ * Fix: Get rid of empty needle PHP warning
102
+
103
  = 3.1.34 =
104
  * Dev: Tested up to WordPress 5.6
105
  * Fix: OR searches will now work as OR, not as AND