My Calendar - Version 2.4.20

Version Description

  • Bug fix: PHP warning triggered on type conversion when toggling time views.
  • Bug fix: Map template tag returned raw scripts without <script> tags.
Download this release

Release Info

Developer joedolson
Plugin Icon 128x128 My Calendar
Version 2.4.20
Comparing to
See all releases

Code changes from version 2.4.19 to 2.4.20

my-calendar-output.php CHANGED
@@ -1226,7 +1226,8 @@ function my_calendar( $name, $format, $category, $time = 'month', $ltype = '', $
1226
  if ( in_array( 'timeframe', $used ) ) {
1227
  // if dy parameter not set, use today's date instead of first day of month.
1228
  if ( isset( $_GET['dy'] ) ) {
1229
- $current_set = mktime( 0, 0, 0, $c_month, $_GET['dy'], $c_year );
 
1230
  if ( date( 'N', $current_set ) == $start_of_week ) {
1231
  $weeks_day = first_day_of_week( $current_set );
1232
  } else {
1226
  if ( in_array( 'timeframe', $used ) ) {
1227
  // if dy parameter not set, use today's date instead of first day of month.
1228
  if ( isset( $_GET['dy'] ) ) {
1229
+ $current_day = absint( $_GET['dy'] );
1230
+ $current_set = mktime( 0, 0, 0, $c_month, $current_day, $c_year );
1231
  if ( date( 'N', $current_set ) == $start_of_week ) {
1232
  $weeks_day = first_day_of_week( $current_set );
1233
  } else {
my-calendar-templates.php CHANGED
@@ -8,7 +8,8 @@ function jd_draw_template( $array, $template, $type = 'list' ) {
8
  $template = stripcslashes( $template );
9
  foreach ( $array as $key => $value ) {
10
  // disallow anything not allowed in posts
11
- $value = wp_kses_post( $value );
 
12
  if ( is_object( $value ) && ! empty( $value ) ) {
13
  // null values return false...
14
  } else {
8
  $template = stripcslashes( $template );
9
  foreach ( $array as $key => $value ) {
10
  // disallow anything not allowed in posts
11
+ // everything in 'map' is already cleaned; map itself has to retain scripts
12
+ $value = !( 'map' == $key ) ? wp_kses_post( $value ) : $value;
13
  if ( is_object( $value ) && ! empty( $value ) ) {
14
  // null values return false...
15
  } else {
my-calendar.php CHANGED
@@ -7,7 +7,7 @@ Author: Joseph C Dolson
7
  Author URI: http://www.joedolson.com
8
  Text Domain: my-calendar
9
  Domain Path: lang
10
- Version: 2.4.19
11
  */
12
  /* Copyright 2009-2016 Joe Dolson (email : joe@joedolson.com)
13
 
@@ -30,7 +30,7 @@ if ( ! defined( 'ABSPATH' ) ) {
30
  } // Exit if accessed directly
31
 
32
  global $mc_version, $wpdb;
33
- $mc_version = '2.4.19';
34
 
35
  // Define the tables used in My Calendar
36
  if ( is_multisite() && get_site_option( 'mc_multisite_show' ) == 1 ) {
7
  Author URI: http://www.joedolson.com
8
  Text Domain: my-calendar
9
  Domain Path: lang
10
+ Version: 2.4.20
11
  */
12
  /* Copyright 2009-2016 Joe Dolson (email : joe@joedolson.com)
13
 
30
  } // Exit if accessed directly
31
 
32
  global $mc_version, $wpdb;
33
+ $mc_version = '2.4.20';
34
 
35
  // Define the tables used in My Calendar
36
  if ( is_multisite() && get_site_option( 'mc_multisite_show' ) == 1 ) {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.joedolson.com/donate/
4
  Tags: calendar, dates, times, event, events, scheduling, schedule, event manager, event calendar, class, concert, conference, meeting, venue, location, box office, tickets, registration
5
  Requires at least: 4.0
6
  Tested up to: 4.5
7
- Stable tag: 2.4.18
8
  Text domain: my-calendar
9
  License: GPLv2 or later
10
 
@@ -108,6 +108,11 @@ Breaking Changes:
108
  * Breaking change: upcoming events widget no longer uses ID 'upcoming-events'; use class '.upcoming-events'
109
  * Breaking change: today's events widget no longer uses ID 'todays-events'; use class '.todays-events'
110
 
 
 
 
 
 
111
  = 2.4.19 =
112
 
113
  * IMPORTANT: SECURITY RELEASE
4
  Tags: calendar, dates, times, event, events, scheduling, schedule, event manager, event calendar, class, concert, conference, meeting, venue, location, box office, tickets, registration
5
  Requires at least: 4.0
6
  Tested up to: 4.5
7
+ Stable tag: 2.4.19
8
  Text domain: my-calendar
9
  License: GPLv2 or later
10
 
108
  * Breaking change: upcoming events widget no longer uses ID 'upcoming-events'; use class '.upcoming-events'
109
  * Breaking change: today's events widget no longer uses ID 'todays-events'; use class '.todays-events'
110
 
111
+ = 2.4.20 =
112
+
113
+ * Bug fix: PHP warning triggered on type conversion when toggling time views.
114
+ * Bug fix: Map template tag returned raw scripts without `<script>` tags.
115
+
116
  = 2.4.19 =
117
 
118
  * IMPORTANT: SECURITY RELEASE