php notices

This commit is contained in:
biztechc
2018-01-31 12:29:03 +00:00
parent b71fd99957
commit 94137303d8
2 changed files with 9 additions and 6 deletions
+4 -4
View File
@@ -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('<option value=$atts[page_length]>" . __( 'Select' ) . "</option>').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;";
}