Ninja Tables – WP Data Table Plugin for WordPress - Version 1.1.3

Version Description

  • Improve TablePress Import
  • Add Support for older WP versions
Download this release

Release Info

Developer techjewel
Plugin Icon 128x128 Ninja Tables – WP Data Table Plugin for WordPress
Version 1.1.3
Comparing to
See all releases

Code changes from version 1.1.2 to 1.1.3

admin/NinjaTablesAdmin.php CHANGED
@@ -323,10 +323,11 @@ class NinjaTablesAdmin {
323
  } else {
324
  $header = array();
325
  for ( $i = 0; $i < count( $rows ); $i ++ ) {
326
- $header[] = 'header-' . $i;
327
  }
328
  }
329
 
 
330
  $rows = array_reverse($rows);
331
 
332
  $this->storeTableConfigWhenImporting($ninjaTableId, $header);
@@ -390,7 +391,7 @@ class NinjaTablesAdmin {
390
  }
391
  $data[$key] = $item;
392
  }
393
-
394
  return ninja_table_renameDuplicateValues( $data );
395
  }
396
 
@@ -491,6 +492,7 @@ class NinjaTablesAdmin {
491
  }
492
 
493
  private function storeTableConfigWhenImporting( $tableId, $header ) {
 
494
  $header = array_combine( ninja_table_renameDuplicateValues(
495
  $this->formatHeader( $header )
496
  ), $header );
323
  } else {
324
  $header = array();
325
  for ( $i = 0; $i < count( $rows ); $i ++ ) {
326
+ $header[] = 'header-' . $i+1;
327
  }
328
  }
329
 
330
+
331
  $rows = array_reverse($rows);
332
 
333
  $this->storeTableConfigWhenImporting($ninjaTableId, $header);
391
  }
392
  $data[$key] = $item;
393
  }
394
+
395
  return ninja_table_renameDuplicateValues( $data );
396
  }
397
 
492
  }
493
 
494
  private function storeTableConfigWhenImporting( $tableId, $header ) {
495
+
496
  $header = array_combine( ninja_table_renameDuplicateValues(
497
  $this->formatHeader( $header )
498
  ), $header );
includes/NinjaTableClass.php CHANGED
@@ -69,7 +69,7 @@ class NinjaTableClass {
69
  public function __construct() {
70
 
71
  $this->plugin_name = 'ninja-tables';
72
- $this->version = '1.1.2';
73
 
74
  $this->load_dependencies();
75
 
69
  public function __construct() {
70
 
71
  $this->plugin_name = 'ninja-tables';
72
+ $this->version = '1.1.3';
73
 
74
  $this->load_dependencies();
75
 
includes/libs/ninjadb/src/ModelTrait.php CHANGED
@@ -248,7 +248,6 @@ trait ModelTrait {
248
  unset($this->statements['offset']);
249
  $this->select(['COUNT(*)']);
250
  $statement = $this->prepare();
251
- $this->setLastQueryInfo();
252
  $this->statements = $oldStatements;
253
  }
254
  else if ($type == 'max') {
248
  unset($this->statements['offset']);
249
  $this->select(['COUNT(*)']);
250
  $statement = $this->prepare();
 
251
  $this->statements = $oldStatements;
252
  }
253
  else if ($type == 'max') {
ninja-tables.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin Name: Ninja Tables
17
  * Plugin URI: https://wpmanageninja.com/plugins/ninja-tables/
18
  * Description: The Easiest & Fastest Responsive Table Plugin on WordPress. Multiple templates, drag-&-drop live table builder, multiple color scheme, and styles.
19
- * Version: 1.1.2
20
  * Author: WPManageNinja
21
  * Author URI: https://wpmanageninja.com/
22
  * License: GPL-2.0+
16
  * Plugin Name: Ninja Tables
17
  * Plugin URI: https://wpmanageninja.com/plugins/ninja-tables/
18
  * Description: The Easiest & Fastest Responsive Table Plugin on WordPress. Multiple templates, drag-&-drop live table builder, multiple color scheme, and styles.
19
+ * Version: 1.1.3
20
  * Author: WPManageNinja
21
  * Author URI: https://wpmanageninja.com/
22
  * License: GPL-2.0+
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: WordPress tables Plugin, wp tables, data tables, datatables plugin, table
5
  Requires at least: 4.5
6
  Requires PHP: 5.3 or greater
7
  Tested up to: 4.8
8
- Stable tag: 1.1.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -109,6 +109,10 @@ NinjaTables is the most beginner friendly and fastest WordPress Tables plugin av
109
 
110
  == Changelog ==
111
 
 
 
 
 
112
  = 1.1.0 =
113
  * Added contextual Tutorial link.
114
  * Improve TablePress Import UX.
5
  Requires at least: 4.5
6
  Requires PHP: 5.3 or greater
7
  Tested up to: 4.8
8
+ Stable tag: 1.1.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
109
 
110
  == Changelog ==
111
 
112
+ = 1.1.3 =
113
+ * Improve TablePress Import
114
+ * Add Support for older WP versions
115
+
116
  = 1.1.0 =
117
  * Added contextual Tutorial link.
118
  * Improve TablePress Import UX.