diff --git a/readme.txt b/readme.txt
index d93c3e0..ced5e1e 100644
--- a/readme.txt
+++ b/readme.txt
@@ -2,8 +2,8 @@
Contributors: biztechc
Tags: WP jQuery DataTable, jQuery, jQuery DataTable, Table ,DataTable
Requires at least: 3.6.1
-Tested up to: 6.1.1
-Stable tag: 4.0.1
+Tested up to: 6.7.1
+Stable tag: 4.1.0
License: GPLv2 or later
Features can be settings to meet your exact needs for your table implementations. like Paging,Ordering,search, etc...
@@ -68,6 +68,10 @@ Is this plugin prepared for multisites? Yes.
== Changelog ==
+= 4.1.0 =
+* Compatibility with WordPress version 6.7.1
+* Vulnerability Fix
+
= 4.0.1 =
* Compatibility with WordPress version 6.1.1
diff --git a/wp-jquery-datatable.php b/wp-jquery-datatable.php
index dc96738..ae421e7 100644
--- a/wp-jquery-datatable.php
+++ b/wp-jquery-datatable.php
@@ -1,73 +1,78 @@
-
-
+?>
+
+ "example",
'info' => "$wp_jdt_info",
'paging' => "$wp_jdt_paging",
@@ -314,59 +319,66 @@ function wp_jdt_shortcode( $atts, $content = "" ) {
'order_row_number' => "$wp_jdt_order_row",
'order_row_number_sort' => "$wp_jdt_order_row_sort",
'searching' => "$wp_jdt_searching",
- ), $atts, 'wp_jdt' );
+ ), $atts, 'wp_jdt');
+
+ $table_id = esc_js($atts['id']);
+ $table_info = esc_js($atts['info']);
+ $table_paging = esc_js($atts['paging']);
+ $table_page_length = esc_js($atts['page_length']);
+ $table_paging_type = esc_js($atts['paging_type']);
+ $table_b_length_change = esc_js($atts['b_length_change']);
+ $table_ordering = esc_js($atts['ordering']);
+ $table_order_row_number = esc_js($atts['order_row_number']);
+ $table_order_row_number_sort = esc_js($atts['order_row_number_sort']);
+ $table_searching = esc_js($atts['searching']);
$wp_jdt_script = "";
$wp_jdt_script .= "";
// css and js
- wp_enqueue_style( 'jdt-style-data-tables' );
- wp_enqueue_script( 'jdt-js-datatables' );
+ wp_enqueue_style('jdt-style-data-tables');
+ wp_enqueue_script('jdt-js-datatables');
return $wp_jdt_script;
}
-register_uninstall_hook( __FILE__, 'wp_jdt_uninstall' ); // uninstall plug-in
-function wp_jdt_uninstall() {
- delete_option('wp_jdt_info');
- delete_option('wp_jdt_paging');
- delete_option('wp_jdt_page_length');
- delete_option('wp_jdt_paging_type');
- delete_option('wp_jdt_b_length_change');
- delete_option('wp_jdt_ordering');
- delete_option('wp_jdt_order_row');
- delete_option('wp_jdt_order_row_sort');
- delete_option('wp_jdt_searching');
+register_uninstall_hook(__FILE__, 'wp_jdt_uninstall'); // uninstall plug-in
+function wp_jdt_uninstall()
+{
+ delete_option('wp_jdt_info');
+ delete_option('wp_jdt_paging');
+ delete_option('wp_jdt_page_length');
+ delete_option('wp_jdt_paging_type');
+ delete_option('wp_jdt_b_length_change');
+ delete_option('wp_jdt_ordering');
+ delete_option('wp_jdt_order_row');
+ delete_option('wp_jdt_order_row_sort');
+ delete_option('wp_jdt_searching');
}