From 868b2d0fce6999038cc6c13ea2016c6f766b6db1 Mon Sep 17 00:00:00 2001 From: craftwerk Date: Sat, 26 Aug 2023 20:02:02 +0200 Subject: [PATCH] Deny direct access --- main.php | 9 +++++++++ templates/preloader.php | 11 ++++++----- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/main.php b/main.php index 8752c67..1a221b2 100644 --- a/main.php +++ b/main.php @@ -3,11 +3,19 @@ Plugin URI: https://bootscore.me/plugins/bs-preloader/ Description: This plugin adds a preloader to bootScore Version: 5.1.0 +Tested up to: 6.3 +Requires at least: 5.0 +Requires PHP: 5.6 Author: bootScore Author URI: https://bootscore.me License: MIT License */ + +// Exit if accessed directly +defined( 'ABSPATH' ) || exit; + + // Update checker require 'update/update-checker.php'; $myUpdateChecker = Puc_v4_Factory::buildUpdateChecker( @@ -16,6 +24,7 @@ 'bs-preloader-main' ); + // Register Styles and Scripts function bs_preloader_scripts() { diff --git a/templates/preloader.php b/templates/preloader.php index 4cff76e..12348ba 100644 --- a/templates/preloader.php +++ b/templates/preloader.php @@ -5,12 +5,13 @@ * * This template can be overriden by copying this file to your-theme/bs-preloader-main/preloader.php * - * @author bootScore - * @package bS Preloader - * @version 5.0.1.5 + * @author bootScore + * @package bS Preloader + * @version 5.1.1 */ -if (!defined('ABSPATH')) exit; // Don't allow direct access +// Exit if accessed directly +defined( 'ABSPATH' ) || exit; ?> @@ -18,4 +19,4 @@
Loading...
- \ No newline at end of file +