My Calendar - Version 3.1.6

Version Description

  • Bug fix: If a category name was blank, it would automatically be filtered to by upcoming events lists.
  • Bug fix: Show print view as list if main view is list.
  • Bug fix: Strip HTML tags from aria-label attributes
  • Bug fix: .details needs position: relative in twentyfifteen stylesheet
  • Adjust tested to value to 5.1
Download this release

Release Info

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

Code changes from version 3.1.5 to 3.1.6

my-calendar-limits.php CHANGED
@@ -48,6 +48,9 @@ function mc_prepare_search_query( $query ) {
48
* @return string SQL modifiers.
49
*/
50
function mc_select_category( $category, $type = 'event', $group = 'events' ) {
51
$category = urldecode( $category );
52
$select_clause = '';
53
$data = ( 'category' == $group ) ? 'category_id' : 'r.category_id';
@@ -132,6 +135,9 @@ function mc_category_select_ids( $category ) {
132
* @return string WHERE limits
133
*/
134
function mc_select_author( $author, $type = 'event', $context = 'author' ) {
135
$author = urldecode( $author );
136
if ( '' == $author || 'all' == $author || 'default' == $author || null == $author ) {
137
return '';
48
* @return string SQL modifiers.
49
*/
50
function mc_select_category( $category, $type = 'event', $group = 'events' ) {
51
+ if ( '' == $category ) {
52
+ return '';
53
+ }
54
$category = urldecode( $category );
55
$select_clause = '';
56
$data = ( 'category' == $group ) ? 'category_id' : 'r.category_id';
135
* @return string WHERE limits
136
*/
137
function mc_select_author( $author, $type = 'event', $context = 'author' ) {
138
+ if ( '' == $author ) {
139
+ return '';
140
+ }
141
$author = urldecode( $author );
142
if ( '' == $author || 'all' == $author || 'default' == $author || null == $author ) {
143
return '';
my-calendar-output.php CHANGED
@@ -348,7 +348,7 @@ function my_calendar_draw_event( $event, $type = 'calendar', $process_date, $tim
348
$details_label = mc_get_details_label( $event, $data );
349
$details_link = mc_get_details_link( $event );
350
// Translators: Event title.
351
- $aria = " aria-label='" . sprintf( __( 'Details about %s', 'my-calendar' ), $event_title ) . "'";
352
if ( _mc_is_url( $details_link ) ) {
353
$more = "<p class='mc_details'><a$aria itemprop='url' href='" . esc_url( $details_link ) . "'>$details_label</a></p>\n";
354
} else {
@@ -2031,6 +2031,10 @@ function mc_generate_calendar_nav( $params, $cat, $start_of_week, $show_months,
2031
'href' => urlencode( mc_get_current_url() ),
2032
);
2033
2034
$subtract = array();
2035
if ( '' == $ltype ) {
2036
$subtract[] = 'ltype';
348
$details_label = mc_get_details_label( $event, $data );
349
$details_link = mc_get_details_link( $event );
350
// Translators: Event title.
351
+ $aria = " aria-label='" . esc_attr( sprintf( __( 'Details about %s', 'my-calendar' ), strip_tags( $event_title ) ) ) . "'";
352
if ( _mc_is_url( $details_link ) ) {
353
$more = "<p class='mc_details'><a$aria itemprop='url' href='" . esc_url( $details_link ) . "'>$details_label</a></p>\n";
354
} else {
2031
'href' => urlencode( mc_get_current_url() ),
2032
);
2033
2034
+ if ( 'list' == $format ) {
2035
+ $add['format'] = 'list';
2036
+ }
2037
+
2038
$subtract = array();
2039
if ( '' == $ltype ) {
2040
$subtract[] = 'ltype';
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.5
21
*/
22
23
/*
@@ -42,7 +42,7 @@ if ( ! defined( 'ABSPATH' ) ) {
42
}
43
44
global $mc_version, $wpdb;
45
- $mc_version = '3.1.5';
46
47
define( 'MC_DEBUG', false );
48
@@ -59,6 +59,7 @@ function mc_plugin_activated() {
59
// Translators: Name of plug-in, required PHP version, current PHP version.
60
$message = sprintf( __( '%1$s requires PHP version %2$s or higher. Your current PHP version is %3$s', 'my-calendar' ), $plugin_data['Name'], $required_php_version, phpversion() );
61
echo "<div class='error'><p>$message</p></div>";
62
exit;
63
}
64
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.6
21
*/
22
23
/*
42
}
43
44
global $mc_version, $wpdb;
45
+ $mc_version = '3.1.6';
46
47
define( 'MC_DEBUG', false );
48
59
// Translators: Name of plug-in, required PHP version, current PHP version.
60
$message = sprintf( __( '%1$s requires PHP version %2$s or higher. Your current PHP version is %3$s', 'my-calendar' ), $plugin_data['Name'], $required_php_version, phpversion() );
61
echo "<div class='error'><p>$message</p></div>";
62
+ deactivate_plugins( plugin_basename( __FILE__ ) );
63
exit;
64
}
65
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.0
7
Requires PHP: 5.3
8
- Stable tag: 3.1.5
9
Text domain: my-calendar
10
License: GPLv2 or later
11
@@ -83,7 +83,13 @@ Translating my plug-ins is always appreciated. Visit <a href="https://translate.
83
84
== Changelog ==
85
86
- TODO: Support limiting views to multiple locations
87
88
= 3.1.5 =
89
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.6
9
Text domain: my-calendar
10
License: GPLv2 or later
11
83
84
== Changelog ==
85
86
+ = 3.1.6 =
87
+
88
+ * Bug fix: If a category name was blank, it would automatically be filtered to by upcoming events lists.
89
+ * Bug fix: Show print view as list if main view is list.
90
+ * Bug fix: Strip HTML tags from aria-label attributes
91
+ * Bug fix: .details needs position: relative in twentyfifteen stylesheet
92
+ * Adjust tested to value to 5.1
93
94
= 3.1.5 =
95
styles/twentyfifteen.css CHANGED
@@ -172,6 +172,7 @@
172
173
.mc-main .details {
174
padding: 10px;
175
}
176
177
.mc-main .mc-list .details {
172
173
.mc-main .details {
174
padding: 10px;
175
+ position: relative;
176
}
177
178
.mc-main .mc-list .details {