diff --git a/readme.txt b/readme.txt index f6effb1..cdf476e 100644 --- a/readme.txt +++ b/readme.txt @@ -91,6 +91,7 @@ Is this plugin prepared for multisites? Yes. * Removed a new line and some commented code no longer used. * Removed some unnecessary
tags. * Removed the extra Select option from the page lenght menu. +* Added the default page lenghts and the option for All in the page lenght dropdown. = 4.1.0 = * Compatibility with WordPress version 6.7.1 diff --git a/wp-jquery-datatable.php b/wp-jquery-datatable.php index 69c9425..f232252 100644 --- a/wp-jquery-datatable.php +++ b/wp-jquery-datatable.php @@ -229,6 +229,8 @@ function wp_jdt_shortcode($atts) $table_order_sort = (strtolower($atts['order_row_number_sort']) === 'asc') ? 'asc' : 'desc'; $table_searching = ($atts['searching'] === 'true') ? 'true' : 'false'; + $table_length_menu = array(10, 25, 50, 100, -1); + // css and js wp_enqueue_style('jdt-style-data-tables'); wp_enqueue_script('jdt-js-datatables'); @@ -239,6 +241,7 @@ function wp_jdt_shortcode($atts) $table_info, $table_paging, $table_page_length, + $table_length_menu, $table_paging_type, $table_b_length_change, $table_ordering, @@ -253,6 +256,7 @@ function wp_jdt_shortcode($atts) 'info': , 'paging': , 'pageLength': , + 'lengthMenu': , 'pagingType': '', 'bLengthChange': , 'ordering': ,