Bootstrap/Load: Require wp-includes/compat.php earlier in wp-settings.php.

This allows for using polyfill functions in more files, including the `advanced-cache.php` drop-in.

Follow-up to [6108], [46183], [55988], [55990], [56006].

See #58206.
Built from https://develop.svn.wordpress.org/trunk@56007


git-svn-id: http://core.svn.wordpress.org/trunk@55519 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2023-06-23 20:06:24 +00:00
parent 83351a7243
commit 41361625fa
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.3-alpha-56006'; $wp_version = '6.3-alpha-56007';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

View File

@ -37,6 +37,7 @@ require ABSPATH . WPINC . '/load.php';
wp_check_php_mysql_versions(); wp_check_php_mysql_versions();
// Include files required for initialization. // Include files required for initialization.
require ABSPATH . WPINC . '/compat.php';
require ABSPATH . WPINC . '/class-wp-paused-extensions-storage.php'; require ABSPATH . WPINC . '/class-wp-paused-extensions-storage.php';
require ABSPATH . WPINC . '/class-wp-fatal-error-handler.php'; require ABSPATH . WPINC . '/class-wp-fatal-error-handler.php';
require ABSPATH . WPINC . '/class-wp-recovery-mode-cookie-service.php'; require ABSPATH . WPINC . '/class-wp-recovery-mode-cookie-service.php';
@ -104,7 +105,6 @@ if ( WP_CACHE && apply_filters( 'enable_loading_advanced_cache_dropin', true ) &
wp_set_lang_dir(); wp_set_lang_dir();
// Load early WordPress files. // Load early WordPress files.
require ABSPATH . WPINC . '/compat.php';
require ABSPATH . WPINC . '/class-wp-list-util.php'; require ABSPATH . WPINC . '/class-wp-list-util.php';
require ABSPATH . WPINC . '/formatting.php'; require ABSPATH . WPINC . '/formatting.php';
require ABSPATH . WPINC . '/meta.php'; require ABSPATH . WPINC . '/meta.php';