My Calendar - Version 3.1.12

Version Description

  • Bug fix: User-specific category permissions didn't handle unset (default) values.
  • Bug fix: missing row closure element when weekends not displayed.
Download this release

Release Info

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

Code changes from version 3.1.11 to 3.1.12

my-calendar-event-manager.php CHANGED
@@ -3457,9 +3457,9 @@ function mc_related_events( $id ) {
3457
*/
3458
function mc_can_edit_category( $category, $user ) {
3459
$permissions = get_user_meta( $user, 'mc_user_permissions', true );
3460
- $permissions = (array) apply_filters( 'mc_user_permissions', $permissions, $category, $user );
3461
3462
- if ( empty( $permissions ) || in_array( 'all', $permissions ) || in_array( $category, $permissions ) || current_user_can( 'manage_options' ) ) {
3463
return true;
3464
}
3465
3457
*/
3458
function mc_can_edit_category( $category, $user ) {
3459
$permissions = get_user_meta( $user, 'mc_user_permissions', true );
3460
+ $permissions = apply_filters( 'mc_user_permissions', $permissions, $category, $user );
3461
3462
+ if ( ( ! $permissions || empty( $permissions ) ) || in_array( 'all', $permissions ) || in_array( $category, $permissions ) || current_user_can( 'manage_options' ) ) {
3463
return true;
3464
}
3465
my-calendar-output.php CHANGED
@@ -1908,9 +1908,9 @@ function my_calendar( $args ) {
1908
}
1909
}
1910
1911
- if ( date( 'N', $start ) == $end_of_week ) {
1912
if ( 'list' != $params['format'] ) {
1913
- $body .= "</$tr>\n"; // End of 'is beginning of week'.
1914
}
1915
$week_number_shown = false;
1916
}
1908
}
1909
}
1910
1911
+ if ( date( 'N', $start ) == $end_of_week || ( date( 'N', $start ) == 5 && ! $show_weekends ) ) {
1912
if ( 'list' != $params['format'] ) {
1913
+ $body .= "\n</$tr>\n"; // End of 'is beginning of week'.
1914
}
1915
$week_number_shown = false;
1916
}
my-calendar.php CHANGED
@@ -17,7 +17,7 @@
17
* License: GPL-2.0+
18
* License URI: http://www.gnu.org/license/gpl-2.0.txt
19
* Domain Path: lang
20
- * Version: 3.1.11
21
*/
22
23
/*
@@ -42,7 +42,7 @@ if ( ! defined( 'ABSPATH' ) ) {
42
}
43
44
global $mc_version, $wpdb;
45
- $mc_version = '3.1.11';
46
47
define( 'MC_DEBUG', false );
48
17
* License: GPL-2.0+
18
* License URI: http://www.gnu.org/license/gpl-2.0.txt
19
* Domain Path: lang
20
+ * Version: 3.1.12
21
*/
22
23
/*
42
}
43
44
global $mc_version, $wpdb;
45
+ $mc_version = '3.1.12';
46
47
define( 'MC_DEBUG', false );
48
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: joedolson
3
Donate link: http://www.joedolson.com/donate/
4
Tags: calendar, dates, times, event, events, scheduling, schedule, event manager, event calendar, class, concert, venue, location, box office, tickets, registration
5
Requires at least: 4.4
6
- Tested up to: 5.1
7
Requires PHP: 5.3
8
- Stable tag: 3.1.11
9
Text domain: my-calendar
10
License: GPLv2 or later
11
@@ -83,13 +83,18 @@ Translating my plug-ins is always appreciated. Visit <a href="https://translate.
83
84
== Changelog ==
85
86
= 3.1.11 =
87
88
* New filter on mc_user_permissions operated on wrong variable.
89
90
= 3.1.10 =
91
92
- * SECURITY FIX: XSS scripting vulnerability. Update immediately.
93
* Support for defining individual categories as having no category icon.
94
95
= 3.1.9 =
3
Donate link: http://www.joedolson.com/donate/
4
Tags: calendar, dates, times, event, events, scheduling, schedule, event manager, event calendar, class, concert, venue, location, box office, tickets, registration
5
Requires at least: 4.4
6
+ Tested up to: 5.2
7
Requires PHP: 5.3
8
+ Stable tag: 3.1.12
9
Text domain: my-calendar
10
License: GPLv2 or later
11
83
84
== Changelog ==
85
86
+ = 3.1.12 =
87
+
88
+ * Bug fix: User-specific category permissions didn't handle unset (default) values.
89
+ * Bug fix: missing row closure element when weekends not displayed.
90
+
91
= 3.1.11 =
92
93
* New filter on mc_user_permissions operated on wrong variable.
94
95
= 3.1.10 =
96
97
+ * SECURITY FIX: Unauthenticated XSS scripting vulnerability. Update immediately. Thanks to Andreas Hell.
98
* Support for defining individual categories as having no category icon.
99
100
= 3.1.9 =