Make WordPress Core


Ignore:
Timestamp:
07/16/2023 12:14:47 PM (11 months ago)
Author:
SergeyBiryukov
Message:

Bootstrap/Load: Require wp-includes/compat.php in src/index.php.

This allows for using polyfill functions if src/index.php is the entry point (this file exists as a reminder to build the assets, and is different from the actual index.php file that gets built and boots WordPress).

Includes:

  • Moving the check for the required PHP and MySQL versions earlier.
  • Making the load order consistent between src/index.php, wp-load.php, and wp-settings.php.

Follow-up to [46183], [56006], [56007].

Props westonruter, Presskopp, joemcgill, SergeyBiryukov.
See #58206.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-settings.php

    r56199 r56241  
    3232global $wp_version, $wp_db_version, $tinymce_version, $required_php_version, $required_mysql_version, $wp_local_package;
    3333require ABSPATH . WPINC . '/version.php';
     34require ABSPATH . WPINC . '/compat.php';
    3435require ABSPATH . WPINC . '/load.php';
    3536
     
    3839
    3940// Include files required for initialization.
    40 require ABSPATH . WPINC . '/compat.php';
    4141require ABSPATH . WPINC . '/class-wp-paused-extensions-storage.php';
    4242require ABSPATH . WPINC . '/class-wp-fatal-error-handler.php';
Note: See TracChangeset for help on using the changeset viewer.