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

Version Description

Download this release

Release Info

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

Code changes from version 2.3.1 to 2.3.2

includes/ninja_tables-global-functions.php CHANGED
@@ -29,24 +29,21 @@ if (!function_exists('ninja_table_get_table_settings')) {
29
  function ninja_table_get_table_settings($tableId, $scope = 'public')
30
  {
31
  $tableSettings = get_post_meta($tableId, '_ninja_table_settings', true);
 
32
  if (!$tableSettings) {
33
- $tableSettings = array();
34
- }
35
-
36
- if(empty($tableSettings['css_classes'])) {
37
  $tableSettings['css_classes'] = array();
38
- }
39
-
40
- if(!$tableSettings) {
41
- $tableSettings = array_merge(getDefaultNinjaTableSettings(), $tableSettings);
42
- }
43
- return apply_filters('ninja_get_table_settings_'.$scope, $tableSettings,
44
  $tableId);
45
  }
46
  }
47
 
48
 
49
-
50
  if (!function_exists('getDefaultNinjaTableSettings')) {
51
  function getDefaultNinjaTableSettings()
52
  {
29
  function ninja_table_get_table_settings($tableId, $scope = 'public')
30
  {
31
  $tableSettings = get_post_meta($tableId, '_ninja_table_settings', true);
32
+
33
  if (!$tableSettings) {
34
+ $tableSettings = getDefaultNinjaTableSettings();
35
+ } else if(empty($tableSettings['css_classes'])) {
 
 
36
  $tableSettings['css_classes'] = array();
37
+ }
38
+
39
+ $tableSettings = array_merge(getDefaultNinjaTableSettings(), $tableSettings);
40
+
41
+ return apply_filters('ninja_get_table_settings_'.$scope, $tableSettings,
 
42
  $tableId);
43
  }
44
  }
45
 
46
 
 
47
  if (!function_exists('getDefaultNinjaTableSettings')) {
48
  function getDefaultNinjaTableSettings()
49
  {
ninja-tables.php CHANGED
@@ -15,7 +15,7 @@
15
  * Plugin Name: Ninja Tables
16
  * Plugin URI: https://wpmanageninja.com/ninja-tables/
17
  * Description: The Easiest & Fastest Responsive Table Plugin on WordPress. Multiple templates, drag-&-drop live table builder, multiple color scheme, and styles.
18
- * Version: 2.3.1
19
  * Author: WPManageNinja
20
  * Author URI: https://wpmanageninja.com/
21
  * License: GPL-2.0+
@@ -32,7 +32,7 @@ if (!defined('WPINC')) {
32
  define('NINJA_TABLES_DIR_URL', plugin_dir_url(__FILE__));
33
  define('NINJA_TABLES_DIR_PATH', plugin_dir_path(__FILE__));
34
  define('NINJA_TABLES_PUBLIC_DIR_URL', NINJA_TABLES_DIR_URL.'public/');
35
- define('NINJA_TABLES_VERSION', '2.3.1');
36
  define('NINJA_TABLES_ASSET_VERSION', '2.3.1');
37
 
38
  $ninja_table_instances = array();
15
  * Plugin Name: Ninja Tables
16
  * Plugin URI: https://wpmanageninja.com/ninja-tables/
17
  * Description: The Easiest & Fastest Responsive Table Plugin on WordPress. Multiple templates, drag-&-drop live table builder, multiple color scheme, and styles.
18
+ * Version: 2.3.2
19
  * Author: WPManageNinja
20
  * Author URI: https://wpmanageninja.com/
21
  * License: GPL-2.0+
32
  define('NINJA_TABLES_DIR_URL', plugin_dir_url(__FILE__));
33
  define('NINJA_TABLES_DIR_PATH', plugin_dir_path(__FILE__));
34
  define('NINJA_TABLES_PUBLIC_DIR_URL', NINJA_TABLES_DIR_URL.'public/');
35
+ define('NINJA_TABLES_VERSION', '2.3.2');
36
  define('NINJA_TABLES_ASSET_VERSION', '2.3.1');
37
 
38
  $ninja_table_instances = array();
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: table, WordPress tables Plugin, wp tables, data tables, datatables plugin
5
  Requires at least: 4.5
6
  Requires PHP: 5.4 or greater
7
  Tested up to: 4.9.7
8
- Stable tag: 2.3.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.4 or greater
7
  Tested up to: 4.9.7
8
+ Stable tag: 2.3.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11