wpDataTables Lite - Version 2.1.12

Version Description

  • BugFix: Fixed issue with spaces in column headers
  • BugFix: Fixed issue with not saving tooltip options in charts
  • BugFix: Fixed error message on the welcome page.
  • Compatibility with WordPress 5.7.1 approved.
  • Other small bug fixes and stability improvements.
Download this release

Release Info

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

Code changes from version 2.1.11 to 2.1.12

assets/js/wpdatatables/wdt.chartWizard.js CHANGED
@@ -764,6 +764,8 @@ var wdtChartColumnsData = {};
764
  } else {
765
  if (editing_chart_data.render_data.options.tooltip.trigger == 'none') {
766
  $('#tooltip-enabled').prop('checked', '');
 
 
767
  }
768
  }
769
 
764
  } else {
765
  if (editing_chart_data.render_data.options.tooltip.trigger == 'none') {
766
  $('#tooltip-enabled').prop('checked', '');
767
+ } else {
768
+ $('#tooltip-enabled').prop('checked', 'checked');
769
  }
770
  }
771
 
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.1.11');
13
 
14
  /**
15
  * Regular Expressions
9
 
10
  // Current version
11
 
12
+ define('WDT_CURRENT_VERSION', '2.1.12');
13
 
14
  /**
15
  * Regular Expressions
controllers/wdt_admin.php CHANGED
@@ -459,6 +459,7 @@ function wdtWelcomePageEnqueue()
459
  wp_enqueue_style('wdt-welcome-page-css', WDT_CSS_PATH . 'admin/welcome-page.css', array(), WDT_CURRENT_VERSION);
460
  wp_enqueue_script('wdt-common');
461
  wp_enqueue_script('wdt-doc-js');
 
462
  wp_enqueue_script('wdt-welcome-page-js', WDT_ROOT_URL . 'assets/js/dashboard/welcome-page.js', array(), WDT_CURRENT_VERSION, true);
463
  }
464
 
459
  wp_enqueue_style('wdt-welcome-page-css', WDT_CSS_PATH . 'admin/welcome-page.css', array(), WDT_CURRENT_VERSION);
460
  wp_enqueue_script('wdt-common');
461
  wp_enqueue_script('wdt-doc-js');
462
+ wp_enqueue_script('wdt-bootstrap-back', WDT_JS_PATH . 'bootstrap/bootstrap.min.js', array('jquery'), WDT_CURRENT_VERSION, true);
463
  wp_enqueue_script('wdt-welcome-page-js', WDT_ROOT_URL . 'assets/js/dashboard/welcome-page.js', array(), WDT_CURRENT_VERSION, true);
464
  }
465
 
readme.txt CHANGED
@@ -4,9 +4,9 @@ Author URI: https://tms-outsource.com
4
  Plugin URI: https://wpdatatables.com/
5
  Tags: table, table builder, data tables, tables, charts, simple table, tables from csv, tables from excel, datatables, responsive tables, charting, pie charts, mysql tables, table plugin, wp table, WordPress table Plugin, Google Charts, Excel, JSON, XML, PHP array, line chart, donut, bar chart, histogram, area chart, bubble chart, gauge chart, scatter chart, candlestick, waterfall
6
  Requires at least: 4.0
7
- Tested up to: 5.7
8
  Requires PHP: 5.6
9
- Stable tag: 2.1.11
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -205,6 +205,13 @@ This can be changed from the “Number format” drop-down menu in the wpDataTab
205
 
206
  == Changelog ==
207
 
 
 
 
 
 
 
 
208
  = 2.1.11 =
209
  * BugFix: Fixed issue with not showing simple editor on Safari browser
210
  * BugFix: Fixed issue with welcome page on bulk plugin activation
4
  Plugin URI: https://wpdatatables.com/
5
  Tags: table, table builder, data tables, tables, charts, simple table, tables from csv, tables from excel, datatables, responsive tables, charting, pie charts, mysql tables, table plugin, wp table, WordPress table Plugin, Google Charts, Excel, JSON, XML, PHP array, line chart, donut, bar chart, histogram, area chart, bubble chart, gauge chart, scatter chart, candlestick, waterfall
6
  Requires at least: 4.0
7
+ Tested up to: 5.7.1
8
  Requires PHP: 5.6
9
+ Stable tag: 2.1.12
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
205
 
206
  == Changelog ==
207
 
208
+ = 2.1.12 =
209
+ * BugFix: Fixed issue with spaces in column headers
210
+ * BugFix: Fixed issue with not saving tooltip options in charts
211
+ * BugFix: Fixed error message on the welcome page.
212
+ * Compatibility with WordPress 5.7.1 approved.
213
+ * Other small bug fixes and stability improvements.
214
+
215
  = 2.1.11 =
216
  * BugFix: Fixed issue with not showing simple editor on Safari browser
217
  * BugFix: Fixed issue with welcome page on bulk plugin activation
source/class.wpdatachart.php CHANGED
@@ -1056,6 +1056,12 @@ class WPDataChart
1056
  $renderData['render_data']['options']['titlePosition'] = 'out';
1057
  }
1058
 
 
 
 
 
 
 
1059
 
1060
  // Legend
1061
  $this->setLegendPosition(isset($renderData['render_data']['options']['legend']['position']));
1056
  $renderData['render_data']['options']['titlePosition'] = 'out';
1057
  }
1058
 
1059
+ // Tooltip
1060
+ if ($this->isTooltipEnabled()) {
1061
+ $renderData['render_data']['options']['tooltip']['trigger'] = 'focus';
1062
+ } else {
1063
+ $renderData['render_data']['options']['tooltip']['trigger'] = 'none';
1064
+ }
1065
 
1066
  // Legend
1067
  $this->setLegendPosition(isset($renderData['render_data']['options']['legend']['position']));
source/class.wpdatatable.php CHANGED
@@ -1471,6 +1471,7 @@ class WPDataTable
1471
  if (max($dataRows[$row]) !== null) {
1472
  ++$r;
1473
  foreach ($headingsArray as $dataColumnIndex => $dataColumnHeading) {
 
1474
  $namedDataArray[$r][$dataColumnHeading] = $dataRows[$row][$dataColumnIndex];
1475
  $currentDateFormat = isset($wdtParameters['dateInputFormat'][$dataColumnHeading]) ? $wdtParameters['dateInputFormat'][$dataColumnHeading] : null;
1476
  if (!empty($wdtParameters['data_types'][$dataColumnHeading]) && in_array($wdtParameters['data_types'][$dataColumnHeading], array('date', 'datetime', 'time'))) {
@@ -2071,6 +2072,7 @@ class WPDataTable
2071
 
2072
  $obj = new stdClass();
2073
  $obj->tableId = $this->getId();
 
2074
  $obj->selector = '#' . $this->getId();
2075
  $obj->infoBlock = $this->isInfoBlock();
2076
  $obj->pagination = $this->isPagination();
1471
  if (max($dataRows[$row]) !== null) {
1472
  ++$r;
1473
  foreach ($headingsArray as $dataColumnIndex => $dataColumnHeading) {
1474
+ $dataColumnHeading = trim(preg_replace('/\s\s+/', ' ', str_replace("\n", " ", $dataColumnHeading)));
1475
  $namedDataArray[$r][$dataColumnHeading] = $dataRows[$row][$dataColumnIndex];
1476
  $currentDateFormat = isset($wdtParameters['dateInputFormat'][$dataColumnHeading]) ? $wdtParameters['dateInputFormat'][$dataColumnHeading] : null;
1477
  if (!empty($wdtParameters['data_types'][$dataColumnHeading]) && in_array($wdtParameters['data_types'][$dataColumnHeading], array('date', 'datetime', 'time'))) {
2072
 
2073
  $obj = new stdClass();
2074
  $obj->tableId = $this->getId();
2075
+ $obj->tableType = $this->getTableType();
2076
  $obj->selector = '#' . $this->getId();
2077
  $obj->infoBlock = $this->isInfoBlock();
2078
  $obj->pagination = $this->isPagination();
templates/admin/dashboard/dashboard.inc.php CHANGED
@@ -337,15 +337,15 @@ $tableChartsCount = WDTTools::getTablesCount('chart');
337
  </span>
338
  </p>
339
  <p class="wpdt-text wpdt-font m-b-18">
340
- <?php _e('A minor update with a couple of features and improvements and few bug fixes:', 'wpdatatables'); ?>
341
  </p>
342
  <div class="alert alert-info m-b-0" role="alert">
343
  <i class="wpdt-icon-info-circle-full"></i>
344
  <ul>
345
- <li> <?php _e('<strong>Bugfix:</strong> Fixed issue with not showing simple editor on Safari browser.', 'wpdatatables'); ?></li>
346
- <li> <?php _e('<strong>BugFix:</strong> Fixed issue with welcome page on bulk plugin activation.', 'wpdatatables'); ?></li>
347
- <li> <?php _e('<strong>BugFix:</strong> Fixed some PHP Notice messages.', 'wpdatatables'); ?></li>
348
- <li> <?php _e('<strong>BugFix:</strong> Fixed issue with table borders in simple table.', 'wpdatatables'); ?></li>
349
  <li> <?php _e('Other small bug fixes and stability improvements.', 'wpdatatables'); ?></li>
350
  </ul>
351
  </div>
337
  </span>
338
  </p>
339
  <p class="wpdt-text wpdt-font m-b-18">
340
+ <?php _e('A minor update with a couple of bug fixes and stability improvements:', 'wpdatatables'); ?>
341
  </p>
342
  <div class="alert alert-info m-b-0" role="alert">
343
  <i class="wpdt-icon-info-circle-full"></i>
344
  <ul>
345
+ <li> <?php _e('<strong>Bugfix:</strong> Fixed issue spaces in column headers.', 'wpdatatables'); ?></li>
346
+ <li> <?php _e('<strong>BugFix:</strong> Fixed issue with not saving tooltip options in charts', 'wpdatatables'); ?></li>
347
+ <li> <?php _e('<strong>BugFix:</strong> Fixed error message on the welcome page.', 'wpdatatables'); ?></li>
348
+ <li> <?php _e('Compatibility with WordPress 5.7.1 approved.', 'wpdatatables'); ?></li>
349
  <li> <?php _e('Other small bug fixes and stability improvements.', 'wpdatatables'); ?></li>
350
  </ul>
351
  </div>
wpdatatables.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: wpDataTables - Tables & Table Charts
4
  Plugin URI: https://wpdatatables.com
5
  Description: Create responsive, sortable tables & charts from Excel, CSV or PHP. Add tables & charts to any post in minutes with DataTables.
6
- Version: 2.1.11
7
  Author: TMS-Plugins
8
  Author URI: https://tms-outsource.com
9
  Text Domain: wpdatatables
3
  Plugin Name: wpDataTables - Tables & Table Charts
4
  Plugin URI: https://wpdatatables.com
5
  Description: Create responsive, sortable tables & charts from Excel, CSV or PHP. Add tables & charts to any post in minutes with DataTables.
6
+ Version: 2.1.12
7
  Author: TMS-Plugins
8
  Author URI: https://tms-outsource.com
9
  Text Domain: wpdatatables