All-in-One Event Calendar - Version 2.5.38

Version Description

Download this release

Release Info

Developer calvinyeh
Plugin Icon 128x128 All-in-One Event Calendar
Version 2.5.38
Comparing to
See all releases

Code changes from version 2.5.37 to 2.5.38

all-in-one-event-calendar.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: A calendar system with month, week, day, agenda views, upcoming events widget, color-coded categories, recurrence, and import/export of .ics feeds.
6
  * Author: Time.ly Network Inc.
7
  * Author URI: https://time.ly/
8
- * Version: 2.5.37
9
  * Text Domain: all-in-one-event-calendar
10
  * Domain Path: /language
11
  */
5
  * Description: A calendar system with month, week, day, agenda views, upcoming events widget, color-coded categories, recurrence, and import/export of .ics feeds.
6
  * Author: Time.ly Network Inc.
7
  * Author URI: https://time.ly/
8
+ * Version: 2.5.38
9
  * Text Domain: all-in-one-event-calendar
10
  * Domain Path: /language
11
  */
app/config/constants.php CHANGED
@@ -50,7 +50,7 @@ function ai1ec_initiate_constants( $ai1ec_base_dir, $ai1ec_base_url ) {
50
  // = Plugin Version =
51
  // ==================
52
  if ( ! defined( 'AI1EC_VERSION' ) ) {
53
- define( 'AI1EC_VERSION', '2.5.37' );
54
  }
55
 
56
  // ================
50
  // = Plugin Version =
51
  // ==================
52
  if ( ! defined( 'AI1EC_VERSION' ) ) {
53
+ define( 'AI1EC_VERSION', '2.5.38' );
54
  }
55
 
56
  // ================
language/all-in-one-event-calendar.mo CHANGED
Binary file
language/all-in-one-event-calendar.po CHANGED
@@ -2,13 +2,13 @@
2
  # This file is distributed under the same license as the All-in-One Event Calendar by Time.ly package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: All-in-One Event Calendar by Time.ly 2.5.37\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/all-in-one-event-calendar\n"
7
- "POT-Creation-Date: 2019-03-08 18:39:21+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2019-03-08 18:39+0000\n"
12
  "Last-Translator: Timely <support@time.ly>\n"
13
  "Language-Team:\n"
14
 
2
  # This file is distributed under the same license as the All-in-One Event Calendar by Time.ly package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: All-in-One Event Calendar by Time.ly 2.5.38\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/all-in-one-event-calendar\n"
7
+ "POT-Creation-Date: 2019-04-01 20:00:09+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2019-04-01 20:00+0000\n"
12
  "Last-Translator: Timely <support@time.ly>\n"
13
  "Language-Team:\n"
14
 
language/all-in-one-event-calendar.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the All-in-One Event Calendar by Time.ly package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: All-in-One Event Calendar by Time.ly 2.5.37\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/all-in-one-event-calendar\n"
7
- "POT-Creation-Date: 2019-03-08 18:39:21+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
2
  # This file is distributed under the same license as the All-in-One Event Calendar by Time.ly package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: All-in-One Event Calendar by Time.ly 2.5.38\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/all-in-one-event-calendar\n"
7
+ "POT-Creation-Date: 2019-04-01 20:00:09+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
lib/filesystem/misc.php CHANGED
@@ -88,12 +88,17 @@ class Ai1ec_Filesystem_Misc extends Ai1ec_Base {
88
  * @throws Ai1ec_Bootstrap_Exception
89
  */
90
  public function get_current_theme_hashmap() {
91
- $cur_theme = $this->_registry->get( 'model.option' )->get(
92
- 'ai1ec_current_theme'
93
- );
94
- $file_location = $cur_theme['theme_dir'] . DIRECTORY_SEPARATOR .
95
- 'less.sha1.map.php';
96
- if ( ! file_exists( $file_location ) ) {
 
 
 
 
 
97
  return null;
98
  }
99
 
88
  * @throws Ai1ec_Bootstrap_Exception
89
  */
90
  public function get_current_theme_hashmap() {
91
+ $cur_theme = $this->_registry->get( 'model.option' )->get( 'ai1ec_current_theme' );
92
+
93
+ if ( ! $cur_theme || ( isset( $cur_theme['stylesheet'] ) && 'saas' === $cur_theme['stylesheet'] ) ) {
94
+ return null;
95
+ }
96
+
97
+ $file_location = $cur_theme['theme_dir'] . DIRECTORY_SEPARATOR . 'less.sha1.map.php';
98
+ if ( ! file_exists( $file_location ) || ! is_readable( $file_location ) || ! @file_get_contents( $file_location ) ) {
99
+ // Delete theme options
100
+ $this->_registry->get( 'model.option' )->delete( 'ai1ec_current_theme' );
101
+
102
  return null;
103
  }
104
 
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: uchu, calvinyeh, raquelleira, renatotbueno, domanb, elirenato, hubrik, vtowel, yani.iliev, nicolapeluchetti, jbutkus, lpawlik, bangelov
3
  Tags: calendar, event, ical, feed, ics, icalendar, sync, aggregator, google, venue, calendar widget, events widget
4
  Requires at least: 3.5
5
- Tested up to: 5.1
6
- Stable tag: 2.5.37
7
  Requires PHP: 5.4
8
  License: GNU General Public License, version 3 (GPL-3.0)
9
 
@@ -124,6 +124,9 @@ You can help translate by going to [https://translate.time.ly](https://translate
124
 
125
  == Changelog ==
126
 
 
 
 
127
  = Version 2.5.37 =
128
  * Fixed: Exporting as XML wasn't working as expected.
129
  * Fixed compatibility with PHP 5.2 and 5.3.
2
  Contributors: uchu, calvinyeh, raquelleira, renatotbueno, domanb, elirenato, hubrik, vtowel, yani.iliev, nicolapeluchetti, jbutkus, lpawlik, bangelov
3
  Tags: calendar, event, ical, feed, ics, icalendar, sync, aggregator, google, venue, calendar widget, events widget
4
  Requires at least: 3.5
5
+ Tested up to: 5.1.1
6
+ Stable tag: 2.5.38
7
  Requires PHP: 5.4
8
  License: GNU General Public License, version 3 (GPL-3.0)
9
 
124
 
125
  == Changelog ==
126
 
127
+ = Version 2.5.38 =
128
+ * Fixed: Invalid file location for the current theme options would throw HTTP 500 error on specific server environments.
129
+
130
  = Version 2.5.37 =
131
  * Fixed: Exporting as XML wasn't working as expected.
132
  * Fixed compatibility with PHP 5.2 and 5.3.