From ed9424b91d12947dca4f1260517db3e5cfc7ff4b Mon Sep 17 00:00:00 2001 From: LyNguyen Date: Fri, 16 Aug 2024 14:59:16 +0700 Subject: [PATCH] Fix: incompatibility with PHP CodeSniffer --- mb-relationships.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mb-relationships.php b/mb-relationships.php index ef56999..22e9dc7 100644 --- a/mb-relationships.php +++ b/mb-relationships.php @@ -13,7 +13,9 @@ */ // Prevent loading this file directly. -defined( 'ABSPATH' ) || die; +if ( ! defined( 'ABSPATH' ) ) { + return; +} if ( ! class_exists( 'MBR_Loader' ) ) { require __DIR__ . '/inc/loader.php';