From 5b86cbec237559a7cc9128159da3450ab806cd47 Mon Sep 17 00:00:00 2001 From: flowdee Date: Thu, 26 Feb 2026 15:12:49 +0100 Subject: [PATCH] fixed wporg plugin check errors missing_direct_file_access_protection --- includes/fs-essential-functions.php | 3 +++ includes/managers/class-fs-debug-manager.php | 3 +++ templates/checkout.php | 4 +++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/includes/fs-essential-functions.php b/includes/fs-essential-functions.php index 84ffcbe0..af13f4c9 100644 --- a/includes/fs-essential-functions.php +++ b/includes/fs-essential-functions.php @@ -10,6 +10,9 @@ * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 * @since 1.1.5 */ + if ( ! defined( 'ABSPATH' ) ) { + exit; + } if ( ! function_exists( 'fs_normalize_path' ) ) { if ( function_exists( 'wp_normalize_path' ) ) { diff --git a/includes/managers/class-fs-debug-manager.php b/includes/managers/class-fs-debug-manager.php index 5364712d..948d3546 100644 --- a/includes/managers/class-fs-debug-manager.php +++ b/includes/managers/class-fs-debug-manager.php @@ -6,6 +6,9 @@ * @package Freemius * @since 2.6.2 */ + if ( ! defined( 'ABSPATH' ) ) { + exit; + } class FS_DebugManager { diff --git a/templates/checkout.php b/templates/checkout.php index 00f1002b..909dc8c6 100644 --- a/templates/checkout.php +++ b/templates/checkout.php @@ -5,7 +5,9 @@ * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 * @since 2.9.0 */ - + if ( ! defined( 'ABSPATH' ) ) { + exit; + } /** * @var array $VARS * @var Freemius $fs