Bootstrap/Load: Add Words of warning about load order.

Since this file is loaded incredibly early, many functions are not available. Those deeply familiar with how load works might have some idea as to what's safe and what isn't, but it's generally confusing and a little opaque so let's warn people there be dragons.

Props helen, DrewAPicture, jorbin.
Fixes #38650.

Built from https://develop.svn.wordpress.org/trunk@58944


git-svn-id: http://core.svn.wordpress.org/trunk@58340 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Aaron Jorbin 2024-08-28 14:36:17 +00:00
parent af0ddfb337
commit 4065eb8bc4
2 changed files with 7 additions and 1 deletions

View File

@ -3,6 +3,12 @@
* Sets up the default filters and actions for most * Sets up the default filters and actions for most
* of the WordPress hooks. * of the WordPress hooks.
* *
* This file is loaded very early in the bootstrap which
* means many functions are not yet available and site
* information such as if this is multisite is unknown.
* Before using functions besides `add_filter` and
* `add_action`, verify things will work as expected.
*
* If you need to remove a default hook, this file will * If you need to remove a default hook, this file will
* give you the priority to use for removing the hook. * give you the priority to use for removing the hook.
* *

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.7-alpha-58943'; $wp_version = '6.7-alpha-58944';
/** /**
* 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.