wpDataTables Lite - Version 2.0.10

Version Description

  • Bug fixes and stability improvements.
Download this release

Release Info

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

Code changes from version 2.0.9 to 2.0.10

config/config.inc.php CHANGED
@@ -9,7 +9,7 @@ defined('ABSPATH') or die("Cannot access pages directly.");
9
 
10
  // Current version
11
 
12
- define('WDT_CURRENT_VERSION', '2.0.9');
13
  define('WDT_TIMEOUT_FACTOR', 5);
14
 
15
  /**
9
 
10
  // Current version
11
 
12
+ define('WDT_CURRENT_VERSION', '2.0.10');
13
  define('WDT_TIMEOUT_FACTOR', 5);
14
 
15
  /**
controllers/wdt_functions.php CHANGED
@@ -715,53 +715,6 @@ if ($wp_version < 4.4) {
715
  }
716
  }
717
 
718
- /**
719
- * Auto update function
720
- */
721
- if ('' !== get_option('wdtPurchaseCode')) {
722
-
723
- global $wdt_plugin_slug;
724
-
725
- $filePath = plugin_basename(__FILE__);
726
- $filePathArr = explode('/', $filePath);
727
- $wdt_plugin_slug = $filePathArr[0] . '/wpdatatables.php';
728
-
729
- function wdtTransientUpdate($transient) {
730
- global $wdt_plugin_slug;
731
-
732
- // Remote version
733
- $remoteVersion = WDTTools::checkRemoteVersion();
734
-
735
- if (version_compare(WDT_CURRENT_VERSION, $remoteVersion, '<')) {
736
- $obj = new stdClass();
737
- $obj->slug = $wdt_plugin_slug;
738
- $obj->new_version = $remoteVersion;
739
- $obj->url = 'http://wpdatatables.com/verified-download.php?purchase_code=' . get_option('wdtPurchaseCode');
740
- $obj->package = 'http://wpdatatables.com/verified-download.php?purchase_code=' . get_option('wdtPurchaseCode');
741
- $transient->response[$wdt_plugin_slug] = $obj;
742
- }
743
-
744
- return $transient;
745
- }
746
-
747
- add_filter('pre_set_site_transient_update_plugins', 'wdtTransientUpdate');
748
-
749
- function wdtPluginsApi($false, $action, $arg) {
750
- global $wdt_plugin_slug;
751
-
752
- if (property_exists($arg, 'slug') && ($arg->slug === $wdt_plugin_slug || $arg->slug == 'wpdatatables.php')) {
753
- $information = WDTTools::checkRemoteInfo();
754
-
755
- return $information;
756
- }
757
-
758
- return false;
759
- }
760
-
761
- add_filter('plugins_api', 'wdtPluginsApi', 10, 3);
762
-
763
- }
764
-
765
  /**
766
  * Optional Visual Composer integration
767
  */
715
  }
716
  }
717
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
718
  /**
719
  * Optional Visual Composer integration
720
  */
readme.txt CHANGED
@@ -6,7 +6,7 @@ Tags: wordpress table plugin, tables, wpdatatables, tables from excel, tables fr
6
  Requires at least: 4.0
7
  Tested up to: 5.2.1
8
  Requires PHP: 5.4
9
- Stable tag: 2.0.9
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -123,7 +123,7 @@ Installation of the plugin is really simple.
123
 
124
  Usually this happens when PHP version is older than 5.4 is installed. Please first check this, and upgrade to PHP 5.4 or more, if that’s the issue.
125
 
126
- = How to hide “Showing X of X entries” in pagination? =
127
 
128
  Go to display tab of the table settings block and disable the “Info block” setting.
129
 
@@ -163,6 +163,9 @@ This can be changed from the “Number format” drop-down menu in the wpDataTab
163
 
164
  == Changelog ==
165
 
 
 
 
166
  = 2.0.9 =
167
  * Feature: Added Gutenberg block – the plugin is now Gutenberg optimized.
168
  * Feature: Added option to choose whether you want to keep the tables after deleting the plugin from the Plugins page (by default the tables will be saved in database after deleting the plugin).
@@ -230,7 +233,7 @@ This can be changed from the “Number format” drop-down menu in the wpDataTab
230
  = 1.1 =
231
  * Migrated Table Tools to use HTML5 instead of Adobe Flash
232
  * Advanced settings for configuring Table Tools (individually per button)
233
- * Wide tables can be configured to be horizontally scrollable
234
  * Upgraded used libraries
235
  * Compatibility with WP 4.5.2 approved
236
  * Numerous bugfixes
6
  Requires at least: 4.0
7
  Tested up to: 5.2.1
8
  Requires PHP: 5.4
9
+ Stable tag: 2.0.10
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
123
 
124
  Usually this happens when PHP version is older than 5.4 is installed. Please first check this, and upgrade to PHP 5.4 or more, if that’s the issue.
125
 
126
+ = How to hide “Showing X of X entries” in pagination? =
127
 
128
  Go to display tab of the table settings block and disable the “Info block” setting.
129
 
163
 
164
  == Changelog ==
165
 
166
+ = 2.0.10 =
167
+ * Bug fixes and stability improvements.
168
+
169
  = 2.0.9 =
170
  * Feature: Added Gutenberg block – the plugin is now Gutenberg optimized.
171
  * Feature: Added option to choose whether you want to keep the tables after deleting the plugin from the Plugins page (by default the tables will be saved in database after deleting the plugin).
233
  = 1.1 =
234
  * Migrated Table Tools to use HTML5 instead of Adobe Flash
235
  * Advanced settings for configuring Table Tools (individually per button)
236
+ * Wide tables can be configured to be horizontally scrollable
237
  * Upgraded used libraries
238
  * Compatibility with WP 4.5.2 approved
239
  * Numerous bugfixes
source/WpDataTablesGutenbergBlock.php CHANGED
@@ -94,6 +94,21 @@ class WpDataTablesGutenbergBlock
94
  return in_array($editor_option, $block_editor_active, true);
95
  }
96
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
97
  return true;
98
  }
99
 
94
  return in_array($editor_option, $block_editor_active, true);
95
  }
96
 
97
+ // Fix for conflict with Avada - Fusion builder and gutenberg blocks
98
+ if ( class_exists( 'FusionBuilder' ) && !(isset( $_GET['gutenberg-editor']))){
99
+ return false;
100
+ }
101
+
102
+ // Fix for conflict with Disable Gutenberg plugin
103
+ if (class_exists('DisableGutenberg')) {
104
+ return false;
105
+ }
106
+
107
+ // Fix for conflict with WP Bakery Page Builder
108
+ if ( class_exists( 'Vc_Manager' ) && (isset( $_GET['classic-editor']))){
109
+ return false;
110
+ }
111
+
112
  return true;
113
  }
114
 
source/class.wdttools.php CHANGED
@@ -5,7 +5,6 @@ defined('ABSPATH') or die("Cannot access pages directly.");
5
  class WDTTools {
6
 
7
  public static $jsVars = array();
8
- public static $remote_path = 'http://wpdatatables.com/version-info.php';
9
 
10
  /**
11
  * Helper function that returns array of possible column types
@@ -277,7 +276,7 @@ class WDTTools {
277
  return $returnArray;
278
  }
279
 
280
-
281
 
282
  /**
283
  * Helper function that returns array of translation strings used for localization of JavaScript files
@@ -596,30 +595,6 @@ class WDTTools {
596
  return false;
597
  }
598
 
599
- /**
600
- * Helper function that checks plugin version on server
601
- * @return bool
602
- */
603
- public static function checkRemoteVersion() {
604
- $request = wp_remote_post(self::$remote_path, array('body' => array('action' => 'version', 'purchase_code' => get_option('wdtPurchaseCode'))));
605
- if (!is_wp_error($request) || wp_remote_retrieve_response_code($request) === 200) {
606
- return $request['body'];
607
- }
608
- return false;
609
- }
610
-
611
- /**
612
- * Helper function that checks plugin remote info
613
- * @return bool|mixed
614
- */
615
- public static function checkRemoteInfo() {
616
- $request = wp_remote_post(self::$remote_path, array('body' => array('action' => 'info', 'purchase_code' => get_option('wdtPurchaseCode'))));
617
- if (!is_wp_error($request) || wp_remote_retrieve_response_code($request) === 200) {
618
- return unserialize($request['body']);
619
- }
620
- return false;
621
- }
622
-
623
  /**
624
  * Helper function that converts PHP to Moment Date Format
625
  * @param $dateFormat
5
  class WDTTools {
6
 
7
  public static $jsVars = array();
 
8
 
9
  /**
10
  * Helper function that returns array of possible column types
276
  return $returnArray;
277
  }
278
 
279
+
280
 
281
  /**
282
  * Helper function that returns array of translation strings used for localization of JavaScript files
595
  return false;
596
  }
597
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
598
  /**
599
  * Helper function that converts PHP to Moment Date Format
600
  * @param $dateFormat
wpdatatables.php CHANGED
@@ -5,7 +5,7 @@
5
  Plugin Name: wpDataTables
6
  Plugin URI: http://tms-plugins.com
7
  Description: Add interactive tables easily from any input source
8
- Version: 2.0.9 Lite
9
  Author: TMS-Plugins
10
  Author URI: http://tms-plugins.com
11
  Text Domain: wpdatatables
@@ -40,7 +40,7 @@ function wpdatatables_load() {
40
  require_once(WDT_ROOT_PATH . 'controllers/wdt_admin.php');
41
  // Admin panel AJAX actions
42
  require_once(WDT_ROOT_PATH . 'controllers/wdt_admin_ajax_actions.php');
43
-
44
  }
45
  require_once(WDT_ROOT_PATH . 'source/class.wdttools.php');
46
  require_once(WDT_ROOT_PATH . 'source/class.wdtconfigcontroller.php');
@@ -49,7 +49,7 @@ function wpdatatables_load() {
49
  require_once(WDT_ROOT_PATH . 'source/class.sql.php');
50
  require_once(WDT_ROOT_PATH . 'source/class.wpdatatable.php');
51
  require_once(WDT_ROOT_PATH . 'source/class.wpdatacolumn.php');
52
-
53
  require_once(WDT_ROOT_PATH . 'source/class.wdtbrowsetable.php');
54
  require_once(WDT_ROOT_PATH . 'source/class.wdtbrowsechartstable.php');
55
  require_once(WDT_ROOT_PATH . 'source/WpDataTablesGutenbergBlock.php');
5
  Plugin Name: wpDataTables
6
  Plugin URI: http://tms-plugins.com
7
  Description: Add interactive tables easily from any input source
8
+ Version: 2.0.10 Lite
9
  Author: TMS-Plugins
10
  Author URI: http://tms-plugins.com
11
  Text Domain: wpdatatables
40
  require_once(WDT_ROOT_PATH . 'controllers/wdt_admin.php');
41
  // Admin panel AJAX actions
42
  require_once(WDT_ROOT_PATH . 'controllers/wdt_admin_ajax_actions.php');
43
+
44
  }
45
  require_once(WDT_ROOT_PATH . 'source/class.wdttools.php');
46
  require_once(WDT_ROOT_PATH . 'source/class.wdtconfigcontroller.php');
49
  require_once(WDT_ROOT_PATH . 'source/class.sql.php');
50
  require_once(WDT_ROOT_PATH . 'source/class.wpdatatable.php');
51
  require_once(WDT_ROOT_PATH . 'source/class.wpdatacolumn.php');
52
+
53
  require_once(WDT_ROOT_PATH . 'source/class.wdtbrowsetable.php');
54
  require_once(WDT_ROOT_PATH . 'source/class.wdtbrowsechartstable.php');
55
  require_once(WDT_ROOT_PATH . 'source/WpDataTablesGutenbergBlock.php');