wpDataTables Lite - Version 2.0.16

Version Description

  • A minor update with a couple of small bugfixes:
  • Bugfix: Fixed conflict with WooCommerce product page and Gutenberg
  • Resolved minor security issue - added nonce on Settings page
  • Compatibility with WordPress 5.3.2 approved.
Download this release

Release Info

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

Code changes from version 2.0.15 to 2.0.16

assets/js/wpdatatables/admin/plugin-settings/main.js CHANGED
@@ -272,7 +272,8 @@
272
  method: 'POST',
273
  data: {
274
  action: 'wpdatatables_save_plugin_settings',
275
- settings: wdt_current_config
 
276
  },
277
  success: function () {
278
  $('.wdt-preload-layer').animateFadeOut();
272
  method: 'POST',
273
  data: {
274
  action: 'wpdatatables_save_plugin_settings',
275
+ settings: wdt_current_config,
276
+ wdtNonce: $('#wdtNonce').val()
277
  },
278
  success: function () {
279
  $('.wdt-preload-layer').animateFadeOut();
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.15');
13
 
14
  /**
15
  * Regular Expressions
9
 
10
  // Current version
11
 
12
+ define('WDT_CURRENT_VERSION', '2.0.16');
13
 
14
  /**
15
  * Regular Expressions
controllers/wdt_admin_ajax_actions.php CHANGED
@@ -8,6 +8,7 @@ defined('ABSPATH') or die("Cannot access pages directly.");
8
  * Method to save the config for the table and columns
9
  */
10
  function wdtSaveTableWithColumns() {
 
11
  if (!current_user_can('manage_options') || !wp_verify_nonce($_POST['wdtNonce'], 'wdtEditNonce')) {
12
  exit();
13
  }
@@ -28,7 +29,8 @@ add_action('wp_ajax_wpdatatables_save_table_config', 'wdtSaveTableWithColumns');
28
  * Save plugin settings
29
  */
30
  function wdtSavePluginSettings() {
31
- if (!current_user_can('manage_options')) {
 
32
  exit();
33
  }
34
 
8
  * Method to save the config for the table and columns
9
  */
10
  function wdtSaveTableWithColumns() {
11
+
12
  if (!current_user_can('manage_options') || !wp_verify_nonce($_POST['wdtNonce'], 'wdtEditNonce')) {
13
  exit();
14
  }
29
  * Save plugin settings
30
  */
31
  function wdtSavePluginSettings() {
32
+
33
+ if (!current_user_can('manage_options') || !wp_verify_nonce($_POST['wdtNonce'], 'wdtSettingsNonce')) {
34
  exit();
35
  }
36
 
readme.txt CHANGED
@@ -4,9 +4,9 @@ Author URI: https://tms-outsource.com
4
  Plugin URI: https://wpdatatables.com/
5
  Tags: data tables, table, charts, tables from csv, tables from excel, datatables, responsive tables, charting, mysql tables, table plugin
6
  Requires at least: 4.0
7
- Tested up to: 5.3
8
  Requires PHP: 5.4
9
- Stable tag: 2.0.15
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -167,6 +167,12 @@ This can be changed from the “Number format” drop-down menu in the wpDataTab
167
 
168
  == Changelog ==
169
 
 
 
 
 
 
 
170
  = 2.0.15 =
171
  * A minor update with a couple of small bugfixes:
172
  * BugFix: Plugin is now compatible with jQuery 3.x.
4
  Plugin URI: https://wpdatatables.com/
5
  Tags: data tables, table, charts, tables from csv, tables from excel, datatables, responsive tables, charting, mysql tables, table plugin
6
  Requires at least: 4.0
7
+ Tested up to: 5.3.2
8
  Requires PHP: 5.4
9
+ Stable tag: 2.0.16
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
167
 
168
  == Changelog ==
169
 
170
+ = 2.0.16 =
171
+ * A minor update with a couple of small bugfixes:
172
+ * Bugfix: Fixed conflict with WooCommerce product page and Gutenberg
173
+ * Resolved minor security issue - added nonce on Settings page
174
+ * Compatibility with WordPress 5.3.2 approved.
175
+
176
  = 2.0.15 =
177
  * A minor update with a couple of small bugfixes:
178
  * BugFix: Plugin is now compatible with jQuery 3.x.
source/GutenbergBlock.php CHANGED
@@ -57,6 +57,11 @@ class GutenbergBlock
57
  return false;
58
  }
59
 
 
 
 
 
 
60
  // Fix for conflict with Disable Gutenberg plugin
61
  if (class_exists('DisableGutenberg')) {
62
  return false;
57
  return false;
58
  }
59
 
60
+ // Fix for conflict with WooCommerce product page
61
+ if ( class_exists( 'WooCommerce' ) && (isset( $_GET['post_type'])) && ($_GET['post_type']) == "product"){
62
+ return false;
63
+ }
64
+
65
  // Fix for conflict with Disable Gutenberg plugin
66
  if (class_exists('DisableGutenberg')) {
67
  return false;
templates/admin/settings/settings.inc.php CHANGED
@@ -10,7 +10,7 @@
10
  <div class="row">
11
 
12
  <div class="card plugin-settings">
13
-
14
  <!-- Preloader -->
15
  <?php include WDT_TEMPLATE_PATH . 'admin/common/preloader.inc.php'; ?>
16
  <!-- /Preloader -->
10
  <div class="row">
11
 
12
  <div class="card plugin-settings">
13
+ <?php wp_nonce_field('wdtSettingsNonce', 'wdtNonce'); ?>
14
  <!-- Preloader -->
15
  <?php include WDT_TEMPLATE_PATH . 'admin/common/preloader.inc.php'; ?>
16
  <!-- /Preloader -->
wpdatatables.php CHANGED
@@ -5,7 +5,7 @@
5
  Plugin Name: wpDataTables - Tables & Table Charts
6
  Plugin URI: https://tms-outsource.com
7
  Description: Create responsive, sortable tables & charts from Excel, CSV or PHP. Add tables & charts to any post in minutes with DataTables.
8
- Version: 2.0.15
9
  Author: TMS-Plugins
10
  Author URI: https://tms-outsource.com
11
  Text Domain: wpdatatables
5
  Plugin Name: wpDataTables - Tables & Table Charts
6
  Plugin URI: https://tms-outsource.com
7
  Description: Create responsive, sortable tables & charts from Excel, CSV or PHP. Add tables & charts to any post in minutes with DataTables.
8
+ Version: 2.0.16
9
  Author: TMS-Plugins
10
  Author URI: https://tms-outsource.com
11
  Text Domain: wpdatatables