Version Description
- Bug fix: Using embed targets is more complicated than expected; disable by default. Enable with 'mc_use_embed_targets' filter.
- Bug fix: Strip embed from parameters when building links (when embed target enabled.)
Download this release
Release Info
Developer | joedolson |
Plugin | My Calendar |
Version | 3.2.13 |
Comparing to | |
See all releases |
Code changes from version 3.2.12 to 3.2.13
- my-calendar-output.php +2 -2
- my-calendar.php +2 -2
- readme.txt +6 -1
my-calendar-output.php
CHANGED
@@ -837,7 +837,7 @@ function mc_date_switcher( $type = 'calendar', $cid = 'all', $time = 'month', $d
|
|
837 |
*/
|
838 |
function mc_url_in_loop( $url ) {
|
839 |
// Only if AJAX is enabled.
|
840 |
-
if ( ( '1' !== get_option( 'mc_ajax_javascript' ) ) ) {
|
841 |
if ( is_singular() && in_the_loop() && is_main_query() ) {
|
842 |
$url = esc_url( add_query_arg( 'embed', 'true', html_entity_decode( $url ) ) );
|
843 |
}
|
@@ -3045,7 +3045,7 @@ function mc_build_url( $add, $subtract, $root = '' ) {
|
|
3045 |
}
|
3046 |
|
3047 |
$variables = $_GET;
|
3048 |
-
$subtract = array_merge( (array) $subtract, array( 'from', 'to', 'my-calendar-api', 's' ) );
|
3049 |
foreach ( $subtract as $value ) {
|
3050 |
unset( $variables[ $value ] );
|
3051 |
}
|
837 |
*/
|
838 |
function mc_url_in_loop( $url ) {
|
839 |
// Only if AJAX is enabled.
|
840 |
+
if ( ( '1' !== get_option( 'mc_ajax_javascript' ) ) && true === apply_filters( 'mc_use_embed_targets', false, $url ) ) {
|
841 |
if ( is_singular() && in_the_loop() && is_main_query() ) {
|
842 |
$url = esc_url( add_query_arg( 'embed', 'true', html_entity_decode( $url ) ) );
|
843 |
}
|
3045 |
}
|
3046 |
|
3047 |
$variables = $_GET;
|
3048 |
+
$subtract = array_merge( (array) $subtract, array( 'from', 'to', 'my-calendar-api', 's', 'embed' ) );
|
3049 |
foreach ( $subtract as $value ) {
|
3050 |
unset( $variables[ $value ] );
|
3051 |
}
|
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.2.
|
21 |
*/
|
22 |
|
23 |
/*
|
@@ -42,7 +42,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
42 |
}
|
43 |
|
44 |
global $mc_version, $wpdb;
|
45 |
-
$mc_version = '3.2.
|
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.2.13
|
21 |
*/
|
22 |
|
23 |
/*
|
42 |
}
|
43 |
|
44 |
global $mc_version, $wpdb;
|
45 |
+
$mc_version = '3.2.13';
|
46 |
|
47 |
define( 'MC_DEBUG', false );
|
48 |
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Requires at least: 4.4
|
|
6 |
Tested up to: 5.6
|
7 |
Requires PHP: 5.6
|
8 |
Text domain: my-calendar
|
9 |
-
Stable tag: 3.2.
|
10 |
License: GPLv2 or later
|
11 |
|
12 |
Accessible WordPress event calendar plugin. Show events from multiple calendars on pages, in posts, or in widgets.
|
@@ -84,6 +84,11 @@ Translating my plug-ins is always appreciated. Visit <a href="https://translate.
|
|
84 |
|
85 |
== Changelog ==
|
86 |
|
|
|
|
|
|
|
|
|
|
|
87 |
= 3.2.12 =
|
88 |
|
89 |
* Bug fix: Don't use embed target link when AJAX disabled.
|
6 |
Tested up to: 5.6
|
7 |
Requires PHP: 5.6
|
8 |
Text domain: my-calendar
|
9 |
+
Stable tag: 3.2.13
|
10 |
License: GPLv2 or later
|
11 |
|
12 |
Accessible WordPress event calendar plugin. Show events from multiple calendars on pages, in posts, or in widgets.
|
84 |
|
85 |
== Changelog ==
|
86 |
|
87 |
+
= 3.2.13 =
|
88 |
+
|
89 |
+
* Bug fix: Using embed targets is more complicated than expected; disable by default. Enable with 'mc_use_embed_targets' filter.
|
90 |
+
* Bug fix: Strip embed from parameters when building links (when embed target enabled.)
|
91 |
+
|
92 |
= 3.2.12 =
|
93 |
|
94 |
* Bug fix: Don't use embed target link when AJAX disabled.
|