Version Description
Download this release
Release Info
Developer | techjewel |
Plugin | Ninja Tables – WP Data Table Plugin for WordPress |
Version | 1.1.2 |
Comparing to | |
See all releases |
Code changes from version 1.1.1 to 1.1.2
- admin/NinjaTablesAdmin.php +9 -4
- includes/NinjaTableClass.php +1 -1
- ninja-tables.php +1 -1
- readme.txt +1 -1
admin/NinjaTablesAdmin.php
CHANGED
@@ -380,10 +380,15 @@ class NinjaTablesAdmin {
|
|
380 |
$data = array();
|
381 |
|
382 |
foreach ( $header as $item ) {
|
383 |
-
$
|
384 |
-
$
|
385 |
-
|
386 |
-
$
|
|
|
|
|
|
|
|
|
|
|
387 |
}
|
388 |
|
389 |
return ninja_table_renameDuplicateValues( $data );
|
380 |
$data = array();
|
381 |
|
382 |
foreach ( $header as $item ) {
|
383 |
+
$item = strip_tags($item);
|
384 |
+
$item = strtolower( preg_replace( '/[\W]+/', '',trim( $item ) ) );
|
385 |
+
$key = sanitize_title($item);
|
386 |
+
$counter = 0;
|
387 |
+
while (isset($data[$key])) {
|
388 |
+
$key = $key.'_'.$counter+1;
|
389 |
+
$counter++;
|
390 |
+
}
|
391 |
+
$data[$key] = $item;
|
392 |
}
|
393 |
|
394 |
return ninja_table_renameDuplicateValues( $data );
|
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.
|
73 |
|
74 |
$this->load_dependencies();
|
75 |
|
69 |
public function __construct() {
|
70 |
|
71 |
$this->plugin_name = 'ninja-tables';
|
72 |
+
$this->version = '1.1.2';
|
73 |
|
74 |
$this->load_dependencies();
|
75 |
|
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.
|
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.2
|
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.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
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 |
|