Advanced Custom Fields: Table Field - Version 1.3.11

Version Description

  • Adds support for updating term type by update_field()
Download this release

Release Info

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

Code changes from version 1.3.10 to 1.3.11

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.10',
41
  );
42
 
43
  // PREVENTS SAVING INVALID TABLE FIELD JSON DATA {
@@ -383,8 +383,15 @@
383
  isset( $value['body'] )
384
  ) {
385
 
 
386
  $data = get_post_meta( $post_id, $field['name'], true );
387
 
 
 
 
 
 
 
388
  // prevents updating a field, thats data are not defined yet
389
  if ( empty( $data ) ) {
390
 
37
  // settings
38
  $this->settings = array(
39
  'dir_url' => plugins_url( '', __FILE__ ) . '/',
40
+ 'version' => '1.3.11',
41
  );
42
 
43
  // PREVENTS SAVING INVALID TABLE FIELD JSON DATA {
383
  isset( $value['body'] )
384
  ) {
385
 
386
+ // try post_meta
387
  $data = get_post_meta( $post_id, $field['name'], true );
388
 
389
+ // try term_meta
390
+ if ( empty( $data ) ) {
391
+
392
+ $data = get_term_meta( str_replace('term_', '', $post_id ), $field['name'], true );
393
+ }
394
+
395
  // prevents updating a field, thats data are not defined yet
396
  if ( empty( $data ) ) {
397
 
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.10',
25
  'dir_url' => plugins_url( '', __FILE__ ) . '/',
26
  );
27
 
@@ -439,8 +439,15 @@ class acf_field_table extends acf_field {
439
  isset( $value['body'] )
440
  ) {
441
 
 
442
  $data = get_post_meta( $post_id, $field['name'], true );
443
 
 
 
 
 
 
 
444
  // prevents updating a field, thats data are not defined yet
445
  if ( empty( $data ) ) {
446
 
21
  * settings (array) Array of settings
22
  */
23
  $this->settings = array(
24
+ 'version' => '1.3.11',
25
  'dir_url' => plugins_url( '', __FILE__ ) . '/',
26
  );
27
 
439
  isset( $value['body'] )
440
  ) {
441
 
442
+ // try post_meta
443
  $data = get_post_meta( $post_id, $field['name'], true );
444
 
445
+ // try term_meta
446
+ if ( empty( $data ) ) {
447
+
448
+ $data = get_term_meta( str_replace('term_', '', $post_id ), $field['name'], true );
449
+ }
450
+
451
  // prevents updating a field, thats data are not defined yet
452
  if ( empty( $data ) ) {
453
 
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.10
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.11
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.10 =
4
  * Fixes table cell content and caption update issue on ACF Gutenberg blocks
5
  * Replaces jQuery depricated size() methode by .length property
1
  == Changelog ==
2
 
3
+ = 1.3.11 =
4
+ * Adds support for updating term type by update_field()
5
+
6
  = 1.3.10 =
7
  * Fixes table cell content and caption update issue on ACF Gutenberg blocks
8
  * Replaces jQuery depricated size() methode by .length property
js/input-v4.js CHANGED
@@ -4,7 +4,7 @@
4
 
5
  var t = this;
6
 
7
- t.version = '1.3.10';
8
 
9
  t.param = {};
10
 
4
 
5
  var t = this;
6
 
7
+ t.version = '1.3.11';
8
 
9
  t.param = {};
10
 
js/input-v5.js CHANGED
@@ -4,7 +4,7 @@
4
 
5
  var t = this;
6
 
7
- t.version = '1.3.10';
8
 
9
  t.param = {};
10
 
4
 
5
  var t = this;
6
 
7
+ t.version = '1.3.11';
8
 
9
  t.param = {};
10
 
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.10) #-#-#-#-#
42
  #. Plugin URI of the plugin/theme
43
  #. #-#-#-#-# advanced-custom-fields-table-field-code.pot (Advanced Custom
44
- #. Fields: Table Field 1.3.10) #-#-#-#-#
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.11) #-#-#-#-#
42
  #. Plugin URI of the plugin/theme
43
  #. #-#-#-#-# advanced-custom-fields-table-field-code.pot (Advanced Custom
44
+ #. Fields: Table Field 1.3.11) #-#-#-#-#
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.10) #-#-#-#-#
42
  #. Plugin URI of the plugin/theme
43
  #. #-#-#-#-# advanced-custom-fields-table-field-code.pot (Advanced Custom
44
- #. Fields: Table Field 1.3.10) #-#-#-#-#
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.11) #-#-#-#-#
42
  #. Plugin URI of the plugin/theme
43
  #. #-#-#-#-# advanced-custom-fields-table-field-code.pot (Advanced Custom
44
+ #. Fields: Table Field 1.3.11) #-#-#-#-#
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.10) #-#-#-#-#
40
  #. Plugin URI of the plugin/theme
41
  #. #-#-#-#-# advanced-custom-fields-table-field-code.pot (Advanced Custom
42
- #. Fields: Table Field 1.3.10) #-#-#-#-#
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.11) #-#-#-#-#
40
  #. Plugin URI of the plugin/theme
41
  #. #-#-#-#-# advanced-custom-fields-table-field-code.pot (Advanced Custom
42
+ #. Fields: Table Field 1.3.11) #-#-#-#-#
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.10) #-#-#-#-#
36
  #. Plugin URI of the plugin/theme
37
  #. #-#-#-#-# advanced-custom-fields-table-field-code.pot (Advanced Custom
38
- #. Fields: Table Field 1.3.10) #-#-#-#-#
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.11) #-#-#-#-#
36
  #. Plugin URI of the plugin/theme
37
  #. #-#-#-#-# advanced-custom-fields-table-field-code.pot (Advanced Custom
38
+ #. Fields: Table Field 1.3.11) #-#-#-#-#
39
  #. Author URI of the plugin/theme
40
  msgid "http://www.johannheyne.de/"
41
  msgstr ""
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: jonua
3
  Tags: acf table
4
  Requires at least: 5.3
5
  Tested up to: 5.4.1
6
- Stable tag: 1.3.10
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
9
 
@@ -309,6 +309,9 @@ However, only when activated as a plugin will updates be available.
309
 
310
  == Changelog ==
311
 
 
 
 
312
  = 1.3.10 =
313
  * Fixes table cell content and caption update issue on ACF Gutenberg blocks
314
  * Replaces jQuery depricated size() methode by .length property
3
  Tags: acf table
4
  Requires at least: 5.3
5
  Tested up to: 5.4.1
6
+ Stable tag: 1.3.11
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
9
 
309
 
310
  == Changelog ==
311
 
312
+ = 1.3.11 =
313
+ * Adds support for updating term type by update_field()
314
+
315
  = 1.3.10 =
316
  * Fixes table cell content and caption update issue on ACF Gutenberg blocks
317
  * Replaces jQuery depricated size() methode by .length property