wpDataTables Lite - Version 2.0.20

Version Description

Download this release

Release Info

Developer wpDataTables
Plugin Icon 128x128 wpDataTables Lite
Version 2.0.20
Comparing to
See all releases

Code changes from version 2.0.19 to 2.0.20

Files changed (2) hide show
  1. readme.txt +1 -1
  2. source/GutenbergBlock.php +11 -6
readme.txt CHANGED
@@ -14,7 +14,7 @@ Create responsive, sortable tables & charts from Excel, CSV & PHP. Add tables &
14
 
15
  == Description ==
16
 
17
- wpDataTables is a popular WordPress table plugin used to **quickly create tables & table charts** from Excel, CVS, PHP and other data sources. Use our WP table plugin to represent vast amounts of complicated data in concise, user-friendly way using tables or charts.
18
 
19
  [youtube https://www.youtube.com/watch?v=06QF0wNEf94]
20
 
14
 
15
  == Description ==
16
 
17
+ wpDataTables is a popular WordPress table plugin used to **quickly create tables & table charts** from Excel, CSV, PHP and other data sources. Use our WP table plugin to represent vast amounts of complicated data in concise, user-friendly way using tables or charts.
18
 
19
  [youtube https://www.youtube.com/watch?v=06QF0wNEf94]
20
 
source/GutenbergBlock.php CHANGED
@@ -18,8 +18,9 @@ class GutenbergBlock
18
  ) {
19
 
20
  if (self::isGutenbergActive()) {
 
21
  $class = get_called_class();
22
- add_action('init', function () use ($class) {
23
  $class::registerBlockType();
24
  });
25
  }
@@ -66,11 +67,7 @@ class GutenbergBlock
66
  if (class_exists('DisableGutenberg')) {
67
  return false;
68
  }
69
-
70
- // Fix for conflict with WP Bakery Page Builder
71
- if (class_exists('Vc_Manager') && (isset($_GET['classic-editor'])) || (class_exists('Vc_Manager') && get_option('wpb_js_gutenberg_disable') == true)) {
72
- return false;
73
- }
74
 
75
  return true;
76
  }
@@ -96,4 +93,12 @@ class GutenbergBlock
96
  return false;
97
  }
98
 
 
 
 
 
 
 
 
 
99
  }
18
  ) {
19
 
20
  if (self::isGutenbergActive()) {
21
+ /** @var static $class */
22
  $class = get_called_class();
23
+ add_action('enqueue_block_editor_assets', function () use ($class) {
24
  $class::registerBlockType();
25
  });
26
  }
67
  if (class_exists('DisableGutenberg')) {
68
  return false;
69
  }
70
+
 
 
 
 
71
 
72
  return true;
73
  }
93
  return false;
94
  }
95
 
96
+ /**
97
+ * Register block for gutenberg
98
+ */
99
+ public static function registerBlockType()
100
+ {
101
+
102
+ }
103
+
104
  }