From 455c2d092435fdd6025748f068d1b5ecd2cddb2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Sat, 16 Nov 2024 17:03:17 +0100 Subject: [PATCH] add missing exit if template is accessed directly --- templates/admin-header.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/admin-header.php b/templates/admin-header.php index efc02bc..4ee283b 100644 --- a/templates/admin-header.php +++ b/templates/admin-header.php @@ -5,6 +5,9 @@ * @package ActivityPub_Event_Bridge */ +// Exit if accessed directly. +defined( 'ABSPATH' ) || exit; // @codeCoverageIgnore + /* @var array $args Template arguments. */ $args = wp_parse_args( $args,