Removed the extra Select option from the page lenght menu

This commit is contained in:
2026-07-21 22:59:33 +02:00
parent 390c27aee3
commit abf0b19c0e
2 changed files with 1 additions and 4 deletions
+1
View File
@@ -90,6 +90,7 @@ Is this plugin prepared for multisites? Yes.
* Rewrite of the wp_jdt_shortcode() function to put security measuremnts in place, better fallback and loading the JS script in the footer. * Rewrite of the wp_jdt_shortcode() function to put security measuremnts in place, better fallback and loading the JS script in the footer.
* Removed a new line and some commented code no longer used. * Removed a new line and some commented code no longer used.
* Removed some unnecessary <br> tags. * Removed some unnecessary <br> tags.
* Removed the extra Select option from the page lenght menu.
= 4.1.0 = = 4.1.0 =
* Compatibility with WordPress version 6.7.1 * Compatibility with WordPress version 6.7.1
-4
View File
@@ -262,10 +262,6 @@ function wp_jdt_shortcode($atts)
'search': '<?php echo esc_js(esc_html__('Searching', 'wp-jquery-datatable')); ?>:' 'search': '<?php echo esc_js(esc_html__('Searching', 'wp-jquery-datatable')); ?>:'
} }
}); });
$('#<?php echo esc_js($table_id); ?>_wrapper select')
.prepend('<option value="<?php echo $table_page_length; ?>"><?php echo esc_js(esc_html__('Select')); ?></option>')
.val('');
}); });
</script> </script>
<?php <?php