Added security measurement to prevent the public to run the php-script directly

This commit is contained in:
2026-07-21 17:03:15 +02:00
parent 6143b0d88f
commit e84c5d66da
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -79,6 +79,7 @@ Is this plugin prepared for multisites? Yes.
* Added DataTables language support for 'search'. * Added DataTables language support for 'search'.
* Added VSCode settings.json for formatOnSave. * Added VSCode settings.json for formatOnSave.
* Added .gitignore. * Added .gitignore.
* Added security measurement to prevent the public to run the php-script directly.
= 4.1.0 = = 4.1.0 =
* Compatibility with WordPress version 6.7.1 * Compatibility with WordPress version 6.7.1
+4
View File
@@ -9,6 +9,10 @@
* WordPress Tested up to: 7.0.2 * WordPress Tested up to: 7.0.2
*/ */
if (!defined('ABSPATH')) {
die('Invalid request.');
}
register_activation_hook(__FILE__, 'wp_jdt_activate_plugin'); register_activation_hook(__FILE__, 'wp_jdt_activate_plugin');
function wp_jdt_activate_plugin() function wp_jdt_activate_plugin()
{ {