From 3fe8ea0c0c977db8525e2438204b6ef419c0345b Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 23 Jun 2023 19:52:31 +0000 Subject: [PATCH] Bootstrap/Load: Require `wp-includes/compat.php` in `wp-load.php`. This allows for using polyfill functions if the site is not installed yet. Follow-up to [28978], [55988]. Props joedolson, dd32. See #58206. git-svn-id: https://develop.svn.wordpress.org/trunk@56006 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-load.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-load.php b/src/wp-load.php index 32056f1121..fe2f7c3be6 100644 --- a/src/wp-load.php +++ b/src/wp-load.php @@ -64,6 +64,7 @@ if ( file_exists( ABSPATH . 'wp-config.php' ) ) { // Standardize $_SERVER variables across setups. wp_fix_server_vars(); + require_once ABSPATH . WPINC . '/compat.php'; require_once ABSPATH . WPINC . '/functions.php'; $path = wp_guess_url() . '/wp-admin/setup-config.php';