Version Description
- Bug fix: CSV exported text fields contained newline characters.
Download this release
Release Info
Developer | joedolson |
Plugin | My Calendar |
Version | 3.2.5 |
Comparing to | |
See all releases |
Code changes from version 3.2.4 to 3.2.5
- my-calendar-api.php +4 -0
- my-calendar.php +2 -2
- readme.txt +5 -1
my-calendar-api.php
CHANGED
@@ -103,6 +103,10 @@ function mc_api_format_csv( $data ) {
|
|
103 |
$values = get_object_vars( $v );
|
104 |
unset( $values['categories'] );
|
105 |
unset( $values['location'] );
|
|
|
|
|
|
|
|
|
106 |
if ( ! $keyed ) {
|
107 |
$keys = array_keys( $values );
|
108 |
fputcsv( $stream, $keys );
|
103 |
$values = get_object_vars( $v );
|
104 |
unset( $values['categories'] );
|
105 |
unset( $values['location'] );
|
106 |
+
$values['UID'] = $values['uid'];
|
107 |
+
foreach ( $values as $key => $text ) {
|
108 |
+
$values[ $key ] = str_replace( array( "\r\n", "\r", "\n" ), '<br class="mc-export" />', trim( $text ) );
|
109 |
+
}
|
110 |
if ( ! $keyed ) {
|
111 |
$keys = array_keys( $values );
|
112 |
fputcsv( $stream, $keys );
|
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.5
|
21 |
*/
|
22 |
|
23 |
/*
|
42 |
}
|
43 |
|
44 |
global $mc_version, $wpdb;
|
45 |
+
$mc_version = '3.2.5';
|
46 |
|
47 |
define( 'MC_DEBUG', false );
|
48 |
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: calendar, dates, times, event, events, scheduling, schedule, event manager
|
|
5 |
Requires at least: 4.4
|
6 |
Tested up to: 5.4
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 3.2.
|
9 |
Text domain: my-calendar
|
10 |
License: GPLv2 or later
|
11 |
|
@@ -83,6 +83,10 @@ Translating my plug-ins is always appreciated. Visit <a href="https://translate.
|
|
83 |
|
84 |
== Changelog ==
|
85 |
|
|
|
|
|
|
|
|
|
86 |
= 3.2.4 =
|
87 |
|
88 |
* Bug fix: Permissions issue caused by variable type mismatch.
|
5 |
Requires at least: 4.4
|
6 |
Tested up to: 5.4
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 3.2.5
|
9 |
Text domain: my-calendar
|
10 |
License: GPLv2 or later
|
11 |
|
83 |
|
84 |
== Changelog ==
|
85 |
|
86 |
+
= 3.2.5 =
|
87 |
+
|
88 |
+
* Bug fix: CSV exported text fields contained newline characters.
|
89 |
+
|
90 |
= 3.2.4 =
|
91 |
|
92 |
* Bug fix: Permissions issue caused by variable type mismatch.
|