diff --git a/plugins/hwp-previews/activation.php b/plugins/hwp-previews/activation.php index 7c6d928b..fe4ef909 100644 --- a/plugins/hwp-previews/activation.php +++ b/plugins/hwp-previews/activation.php @@ -9,6 +9,10 @@ declare(strict_types=1); +if ( ! defined( 'ABSPATH' ) ) { + exit; +} + /** * Runs when the plugin is activated. */ diff --git a/plugins/hwp-previews/composer.json b/plugins/hwp-previews/composer.json index 92f2e23e..1f888f16 100644 --- a/plugins/hwp-previews/composer.json +++ b/plugins/hwp-previews/composer.json @@ -2,7 +2,7 @@ "name": "wpengine/hwp-previews", "type": "wordpress-plugin", "description": "A WordPress plugin for headless previews.", - "license": "GPL-2.0", + "license": "GPL-2.0-or-later", "version": "1.0.2", "authors": [ { diff --git a/plugins/hwp-previews/deactivation.php b/plugins/hwp-previews/deactivation.php index 0d81bb14..8f3fa2bc 100644 --- a/plugins/hwp-previews/deactivation.php +++ b/plugins/hwp-previews/deactivation.php @@ -1,7 +1,4 @@