From 94137303d85d059fd6d720c3b86f3a0fa05a8799 Mon Sep 17 00:00:00 2001 From: biztechc Date: Wed, 31 Jan 2018 12:29:03 +0000 Subject: [PATCH] php notices --- readme.txt | 7 +++++-- wp-jquery-datatable.php | 8 ++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/readme.txt b/readme.txt index 7054f84..5ce8552 100644 --- a/readme.txt +++ b/readme.txt @@ -1,9 +1,9 @@ === WP jQuery DataTable === Contributors: biztechc -Tags: WP jQuery DataTable, jQuery, jQuery DataTable, Table +Tags: WP jQuery DataTable, jQuery, jQuery DataTable, Table ,DataTable Requires at least: 3.6.1 Tested up to: 4.9.1 -Stable tag: 1.1.0 +Stable tag: 1.1.1 License: GPLv2 or later Features can be settings to meet your exact needs for your table implementations. like Paging,Ordering,search, etc... @@ -81,4 +81,7 @@ Is this plugin prepared for multisites? Yes. * Make plugin language compatible * Bug fixed for paging and ordering += 1.1.1 = +* Bug fixed for warnings and notices + == Upgrade Notice == diff --git a/wp-jquery-datatable.php b/wp-jquery-datatable.php index c78803c..f6a5842 100644 --- a/wp-jquery-datatable.php +++ b/wp-jquery-datatable.php @@ -4,7 +4,7 @@ * Description: Features can be settings to meet your exact needs for your table implementations. like Paging,Ordering,Searching, etc... * Author: biztechc * Author URI: https://www.appjetty.com/ - * Version: 1.1.0 + * Version: 1.1.1 */ register_activation_hook( __FILE__, 'wp_jdt_activate_plugin' ); @@ -327,9 +327,9 @@ function wp_jdt_shortcode( $atts, $content = "" ) { $wp_jdt_script .= "'pagingType': '$atts[paging_type]', \n"; $wp_jdt_script .= "'bLengthChange': $atts[b_length_change], \n"; $wp_jdt_script .= "'ordering': $atts[ordering], \n"; - if ( $atts[order_row_number] != '' ) { // if 'Specific Column Order' is not null than add this attribute + if ( $atts['order_row_number'] != '' ) { // if 'Specific Column Order' is not null than add this attribute - $atts[order_row_number_sort] = ( $atts[order_row_number_sort] != "" ) ? $atts[order_row_number_sort] : 'desc'; + $atts['order_row_number_sort'] = ( $atts['order_row_number_sort'] != "" ) ? $atts['order_row_number_sort'] : 'desc'; $wp_jdt_script .= "'order': [$atts[order_row_number],'$atts[order_row_number_sort]'], \n"; } $wp_jdt_script .= "'searching': $atts[searching], \n"; @@ -338,7 +338,7 @@ function wp_jdt_shortcode( $atts, $content = "" ) { $wp_jdt_script .= "jQuery('#$atts[id]_wrapper select').prepend('').val('');"; // if 'Specific Column Order' is not null and ordring is true - if ( $atts[order_row_number] != '' && $atts[ordering] == 'true' ) { + if ( $atts['order_row_number'] != '' && $atts['ordering'] == 'true' ) { $wp_jdt_script .= "jQuery('#$atts[id]_wrapper select')[0].options[0].selected = true;"; }