Advanced Custom Fields: Table Field - Version 1.3.6

Version Description

  • Fixes an issue when changing the field type to table of a field that already has content in the database from another field type.

=

Download this release

Release Info

Developer Jonua
Plugin Icon 128x128 Advanced Custom Fields: Table Field
Version 1.3.6
Comparing to
See all releases

Code changes from version 1.3.5 to 1.3.6

acf-table-v4.php CHANGED
@@ -37,7 +37,7 @@
37
// settings
38
$this->settings = array(
39
'dir_url' => plugins_url( '', __FILE__ ) . '/',
40
- 'version' => '1.3.5',
41
);
42
43
// PREVENTS SAVING INVALID TABLE FIELD JSON DATA {
37
// settings
38
$this->settings = array(
39
'dir_url' => plugins_url( '', __FILE__ ) . '/',
40
+ 'version' => '1.3.6',
41
);
42
43
// PREVENTS SAVING INVALID TABLE FIELD JSON DATA {
acf-table-v5.php CHANGED
@@ -21,7 +21,7 @@ class acf_field_table extends acf_field {
21
* settings (array) Array of settings
22
*/
23
$this->settings = array(
24
- 'version' => '1.3.5',
25
'dir_url' => plugins_url( '', __FILE__ ) . '/',
26
);
27
21
* settings (array) Array of settings
22
*/
23
$this->settings = array(
24
+ 'version' => '1.3.6',
25
'dir_url' => plugins_url( '', __FILE__ ) . '/',
26
);
27
acf-table.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: Advanced Custom Fields: Table Field
4
Plugin URI: http://www.johannheyne.de/
5
Description: This free Add-on adds a table field type for the Advanced Custom Fields plugin.
6
- Version: 1.3.5
7
Author: Johann Heyne
8
Author URI: http://www.johannheyne.de/
9
License: GPLv2 or later
3
Plugin Name: Advanced Custom Fields: Table Field
4
Plugin URI: http://www.johannheyne.de/
5
Description: This free Add-on adds a table field type for the Advanced Custom Fields plugin.
6
+ Version: 1.3.6
7
Author: Johann Heyne
8
Author URI: http://www.johannheyne.de/
9
License: GPLv2 or later
changelog.txt CHANGED
@@ -1,5 +1,8 @@
1
== Changelog ==
2
3
= 1.3.5 =
4
* Fixes an issue that removes table header content using update_field() while option "use header" is set to "no".
5
* Fixes an issue with the update_post_metadata filter
@@ -10,11 +13,11 @@
10
= 1.3.3 =
11
* Fixes returning empty table after saving content containing a single quote
12
13
- = 1.3.5 =
14
* Fixes returning empty table after saving content containing quotes
15
* Fixes an issue using update_field() on a table field
16
17
- = 1.3.5 =
18
* Changes table data storing format from JSON string to serialized array. This is due to an issue caused by third party plugins using update_post_meta() without providing wp_slash() to the value before. Existing table data values in JSON string format in the database will still exists and be compatible. When a field is saved again, the storage format changes from JSON to serialized array.
19
* Fixes an PHP error of table caption
20
1
== Changelog ==
2
3
+ = 1.3.6 =
4
+ * Fixes an issue when changing the field type of a field that already has content in the database.
5
+
6
= 1.3.5 =
7
* Fixes an issue that removes table header content using update_field() while option "use header" is set to "no".
8
* Fixes an issue with the update_post_metadata filter
13
= 1.3.3 =
14
* Fixes returning empty table after saving content containing a single quote
15
16
+ = 1.3.6 =
17
* Fixes returning empty table after saving content containing quotes
18
* Fixes an issue using update_field() on a table field
19
20
+ = 1.3.6 =
21
* Changes table data storing format from JSON string to serialized array. This is due to an issue caused by third party plugins using update_post_meta() without providing wp_slash() to the value before. Existing table data values in JSON string format in the database will still exists and be compatible. When a field is saved again, the storage format changes from JSON to serialized array.
22
* Fixes an PHP error of table caption
23
js/input-v4.js CHANGED
@@ -4,7 +4,7 @@
4
5
var t = this;
6
7
- t.version = '1.3.5';
8
9
t.param = {};
10
@@ -306,6 +306,13 @@
306
console.log( 'The tablefield value is not a valid JSON string:', decodeURIComponent( val.replace(/\+/g, '%20') ) );
307
console.log( 'The parsing error:', e );
308
}
309
}
310
311
return p.data;
4
5
var t = this;
6
7
+ t.version = '1.3.6';
8
9
t.param = {};
10
306
console.log( 'The tablefield value is not a valid JSON string:', decodeURIComponent( val.replace(/\+/g, '%20') ) );
307
console.log( 'The parsing error:', e );
308
}
309
+
310
+ if ( typeof p.data.p != 'object' ) {
311
+
312
+ console.log( 'The tablefield value is not a tablefield JSON string:', p.data );
313
+
314
+ p.data = false;
315
+ }
316
}
317
318
return p.data;
js/input-v5.js CHANGED
@@ -4,7 +4,7 @@
4
5
var t = this;
6
7
- t.version = '1.3.5';
8
9
t.param = {};
10
@@ -336,6 +336,12 @@
336
}
337
}
338
339
}
340
341
return p.data;
4
5
var t = this;
6
7
+ t.version = '1.3.6';
8
9
t.param = {};
10
336
}
337
}
338
339
+ if ( typeof p.data.p != 'object' ) {
340
+
341
+ console.log( 'The tablefield value is not a tablefield JSON string:', p.data );
342
+
343
+ p.data = false;
344
+ }
345
}
346
347
return p.data;
lang/acf-table-da_DK.po CHANGED
@@ -38,10 +38,10 @@ msgid ""
38
msgstr ""
39
40
#. #-#-#-#-# advanced-custom-fields-table-field-code.pot (Advanced Custom
41
- #. Fields: Table Field 1.3.5) #-#-#-#-#
42
#. Plugin URI of the plugin/theme
43
#. #-#-#-#-# advanced-custom-fields-table-field-code.pot (Advanced Custom
44
- #. Fields: Table Field 1.3.5) #-#-#-#-#
45
#. Author URI of the plugin/theme
46
msgid "http://www.johannheyne.de/"
47
msgstr "http://www.johannheyne.de/"
38
msgstr ""
39
40
#. #-#-#-#-# advanced-custom-fields-table-field-code.pot (Advanced Custom
41
+ #. Fields: Table Field 1.3.6) #-#-#-#-#
42
#. Plugin URI of the plugin/theme
43
#. #-#-#-#-# advanced-custom-fields-table-field-code.pot (Advanced Custom
44
+ #. Fields: Table Field 1.3.6) #-#-#-#-#
45
#. Author URI of the plugin/theme
46
msgid "http://www.johannheyne.de/"
47
msgstr "http://www.johannheyne.de/"
lang/acf-table-de_DE.po CHANGED
@@ -38,10 +38,10 @@ msgstr ""
38
"Tabellen Feldtype hinzu."
39
40
#. #-#-#-#-# advanced-custom-fields-table-field-code.pot (Advanced Custom
41
- #. Fields: Table Field 1.3.5) #-#-#-#-#
42
#. Plugin URI of the plugin/theme
43
#. #-#-#-#-# advanced-custom-fields-table-field-code.pot (Advanced Custom
44
- #. Fields: Table Field 1.3.5) #-#-#-#-#
45
#. Author URI of the plugin/theme
46
msgid "http://www.johannheyne.de/"
47
msgstr "http://www.johannheyne.de/"
38
"Tabellen Feldtype hinzu."
39
40
#. #-#-#-#-# advanced-custom-fields-table-field-code.pot (Advanced Custom
41
+ #. Fields: Table Field 1.3.6) #-#-#-#-#
42
#. Plugin URI of the plugin/theme
43
#. #-#-#-#-# advanced-custom-fields-table-field-code.pot (Advanced Custom
44
+ #. Fields: Table Field 1.3.6) #-#-#-#-#
45
#. Author URI of the plugin/theme
46
msgid "http://www.johannheyne.de/"
47
msgstr "http://www.johannheyne.de/"
lang/acf-table-pl_PL.po CHANGED
@@ -36,10 +36,10 @@ msgid ""
36
msgstr ""
37
38
#. #-#-#-#-# advanced-custom-fields-table-field-code.pot (Advanced Custom
39
- #. Fields: Table Field 1.3.5) #-#-#-#-#
40
#. Plugin URI of the plugin/theme
41
#. #-#-#-#-# advanced-custom-fields-table-field-code.pot (Advanced Custom
42
- #. Fields: Table Field 1.3.5) #-#-#-#-#
43
#. Author URI of the plugin/theme
44
msgid "http://www.johannheyne.de/"
45
msgstr ""
36
msgstr ""
37
38
#. #-#-#-#-# advanced-custom-fields-table-field-code.pot (Advanced Custom
39
+ #. Fields: Table Field 1.3.6) #-#-#-#-#
40
#. Plugin URI of the plugin/theme
41
#. #-#-#-#-# advanced-custom-fields-table-field-code.pot (Advanced Custom
42
+ #. Fields: Table Field 1.3.6) #-#-#-#-#
43
#. Author URI of the plugin/theme
44
msgid "http://www.johannheyne.de/"
45
msgstr ""
lang/acf-table.pot CHANGED
@@ -32,10 +32,10 @@ msgid "This free Add-on adds a table field type for the Advanced Custom Fields p
32
msgstr ""
33
34
#. #-#-#-#-# advanced-custom-fields-table-field-code.pot (Advanced Custom
35
- #. Fields: Table Field 1.3.5) #-#-#-#-#
36
#. Plugin URI of the plugin/theme
37
#. #-#-#-#-# advanced-custom-fields-table-field-code.pot (Advanced Custom
38
- #. Fields: Table Field 1.3.5) #-#-#-#-#
39
#. Author URI of the plugin/theme
40
msgid "http://www.johannheyne.de/"
41
msgstr ""
32
msgstr ""
33
34
#. #-#-#-#-# advanced-custom-fields-table-field-code.pot (Advanced Custom
35
+ #. Fields: Table Field 1.3.6) #-#-#-#-#
36
#. Plugin URI of the plugin/theme
37
#. #-#-#-#-# advanced-custom-fields-table-field-code.pot (Advanced Custom
38
+ #. Fields: Table Field 1.3.6) #-#-#-#-#
39
#. Author URI of the plugin/theme
40
msgid "http://www.johannheyne.de/"
41
msgstr ""
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
=== Advanced Custom Fields: Table Field ===
2
Contributors: jonua
3
Tags: acf table
4
- Requires at least: 5.0.3
5
- Tested up to: 5.1
6
- Stable tag: 1.3.5
7
Requires PHP: 5.6
8
License: GPLv2 or later
9
@@ -310,15 +310,15 @@ However, only when activated as a plugin will updates be available.
310
311
== Upgrade Notice ==
312
313
- = 1.3.5 =
314
- Fixes an issue that removes table header content using update_field() while option "use header" is set to "no".
315
- * Fixes an issue with the update_post_metadata filter
316
317
- = 1.3.4 =
318
- Fixes an issue that prevents the removal of table contents.
319
320
== Changelog ==
321
322
= 1.3.5 =
323
* Fixes an issue that removes table header content using update_field() while option "use header" is set to "no".
324
* Fixes an issue with the update_post_metadata filter
1
=== Advanced Custom Fields: Table Field ===
2
Contributors: jonua
3
Tags: acf table
4
+ Requires at least: 5.2.0
5
+ Tested up to: 5.2.2
6
+ Stable tag: 1.3.6
7
Requires PHP: 5.6
8
License: GPLv2 or later
9
310
311
== Upgrade Notice ==
312
313
+ = 1.3.6 =
314
+ * Fixes an issue when changing the field type to table of a field that already has content in the database from another field type.
315
316
317
== Changelog ==
318
319
+ = 1.3.6 =
320
+ * Fixes an issue when changing the field type to table of a field that already has content in the database from another field type.
321
+
322
= 1.3.5 =
323
* Fixes an issue that removes table header content using update_field() while option "use header" is set to "no".
324
* Fixes an issue with the update_post_metadata filter