From 63db58bd9a93bf138c0c13b88426427cf37e5343 Mon Sep 17 00:00:00 2001 From: Monzur Alam <46376609+monzuralam@users.noreply.github.com> Date: Fri, 16 Aug 2024 19:46:22 +0600 Subject: [PATCH] Exit if accessed directly issue has been fixed --- infobox.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/infobox.php b/infobox.php index 1a5ced9..a7d15ae 100644 --- a/infobox.php +++ b/infobox.php @@ -14,6 +14,11 @@ * @package infobox */ +// Exit if accessed directly. +if ( ! defined( 'ABSPATH' ) ) { + exit; +} + /** * Registers all block assets so that they can be enqueued through the block editor * in the corresponding context.