Compare commits

..
1 Commits
Author SHA1 Message Date
biztechc 8a99120f06 php notices 2018-01-31 12:29:03 +00:00
2 changed files with 8 additions and 23 deletions
+3 -13
View File
@@ -1,9 +1,9 @@
=== WP jQuery DataTable === === WP jQuery DataTable ===
Contributors: biztechc Contributors: biztechc
Tags: WP jQuery DataTable, jQuery, jQuery DataTable, Table ,DataTable Tags: WP jQuery DataTable, jQuery, jQuery DataTable, Table
Requires at least: 3.6.1 Requires at least: 3.6.1
Tested up to: 5.5 Tested up to: 4.9.1
Stable tag: 3.0.0 Stable tag: 1.1.0
License: GPLv2 or later License: GPLv2 or later
Features can be settings to meet your exact needs for your table implementations. like Paging,Ordering,search, etc... Features can be settings to meet your exact needs for your table implementations. like Paging,Ordering,search, etc...
@@ -81,14 +81,4 @@ Is this plugin prepared for multisites? Yes.
* Make plugin language compatible * Make plugin language compatible
* Bug fixed for paging and ordering * Bug fixed for paging and ordering
= 1.1.1 =
* Bug fixed for warnings and notices
= 2.0.0 =
* Compatibility with WordPress version 5.3
= 2.0.1 =
* Compatibility with WordPress version 5.4
= 3.0.0 =
* Compatibility with WordPress version 5.5
== Upgrade Notice == == Upgrade Notice ==
+5 -10
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... * Description: Features can be settings to meet your exact needs for your table implementations. like Paging,Ordering,Searching, etc...
* Author: biztechc * Author: biztechc
* Author URI: https://www.appjetty.com/ * Author URI: https://www.appjetty.com/
* Version: 3.0.0 * Version: 1.1.0
*/ */
register_activation_hook( __FILE__, 'wp_jdt_activate_plugin' ); register_activation_hook( __FILE__, 'wp_jdt_activate_plugin' );
@@ -289,11 +289,6 @@ function wp_jdt_shortcode( $atts, $content = "" ) {
$wp_jdt_info = get_option('wp_jdt_info'); $wp_jdt_info = get_option('wp_jdt_info');
$wp_jdt_paging = get_option('wp_jdt_paging'); $wp_jdt_paging = get_option('wp_jdt_paging');
/*if(get_option('wp_jdt_paging')){
$wp_jdt_paging = 'true';
}else{
$wp_jdt_paging = '';
}*/
$wp_jdt_page_length = get_option('wp_jdt_page_length'); $wp_jdt_page_length = get_option('wp_jdt_page_length');
$wp_jdt_paging_type = get_option('wp_jdt_paging_type'); $wp_jdt_paging_type = get_option('wp_jdt_paging_type');
$wp_jdt_b_length_change = get_option('wp_jdt_b_length_change'); $wp_jdt_b_length_change = get_option('wp_jdt_b_length_change');
@@ -332,9 +327,9 @@ function wp_jdt_shortcode( $atts, $content = "" ) {
$wp_jdt_script .= "'pagingType': '$atts[paging_type]', \n"; $wp_jdt_script .= "'pagingType': '$atts[paging_type]', \n";
$wp_jdt_script .= "'bLengthChange': $atts[b_length_change], \n"; $wp_jdt_script .= "'bLengthChange': $atts[b_length_change], \n";
$wp_jdt_script .= "'ordering': $atts[ordering], \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 .= "'order': [$atts[order_row_number],'$atts[order_row_number_sort]'], \n";
} }
$wp_jdt_script .= "'searching': $atts[searching], \n"; $wp_jdt_script .= "'searching': $atts[searching], \n";
@@ -343,8 +338,8 @@ function wp_jdt_shortcode( $atts, $content = "" ) {
$wp_jdt_script .= "jQuery('#$atts[id]_wrapper select').prepend('<option value=$atts[page_length]>" . __( 'Select' ) . "</option>').val('');"; $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 '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;"; $wp_jdt_script .= "jQuery('#$atts[id]_wrapper select')[0].options[0].selected = true;";
} }
$wp_jdt_script .= "} ); \n"; $wp_jdt_script .= "} ); \n";