From 70b0cb29c47e911eca0c29429e15d9b93fca19e2 Mon Sep 17 00:00:00 2001 From: Deepak rohilla Date: Thu, 22 Aug 2024 22:49:39 +0530 Subject: [PATCH] Uncaught exception 'Error' with message 'Undefined constant "ABSPATH"' in /var/www/wp-settings.php:33 Uncaught exception 'Error' with message 'Undefined constant "ABSPATH"' in /var/www/wp-settings.php:33 --- src/wp-settings.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/wp-settings.php b/src/wp-settings.php index 369493f3fcec0..cadcb92eeaefc 100644 --- a/src/wp-settings.php +++ b/src/wp-settings.php @@ -13,6 +13,11 @@ * * @since 1.0.0 */ +// Don't load directly. +if ( ! defined( 'ABSPATH' ) ) { + die(); +} + define( 'WPINC', 'wp-includes' ); /**