From 334c3ca59da358f1e0030987e03b52b5b9aedb48 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 21 Jul 2022 22:43:24 +0000 Subject: [PATCH] Coding Standards: Use `__DIR__` instead of `ABSPATH` in `wp-db.php`. If the file is included directly outside of WordPress core, `ABSPATH` may not be defined. Follow-up to [53749], [53750], [53755]. See #56268, #55647. git-svn-id: https://develop.svn.wordpress.org/trunk@53756 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/wp-db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/wp-db.php b/src/wp-includes/wp-db.php index 91803e7d62..73a0111343 100644 --- a/src/wp-includes/wp-db.php +++ b/src/wp-includes/wp-db.php @@ -14,4 +14,4 @@ if ( function_exists( '_deprecated_file' ) ) { } /** wpdb class */ -require_once ABSPATH . 'wp-includes/class-wpdb.php'; +require_once __DIR__ . '/class-wpdb.php';