From 4065eb8bc49bdd93cf7116814d43a67a78d799f9 Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Wed, 28 Aug 2024 14:36:17 +0000 Subject: [PATCH] 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 --- wp-includes/default-filters.php | 6 ++++++ wp-includes/version.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/wp-includes/default-filters.php b/wp-includes/default-filters.php index 6fba4441d5..dfa8cab48c 100644 --- a/wp-includes/default-filters.php +++ b/wp-includes/default-filters.php @@ -3,6 +3,12 @@ * Sets up the default filters and actions for most * 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 * give you the priority to use for removing the hook. * diff --git a/wp-includes/version.php b/wp-includes/version.php index a1910b3429..aab632d84c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @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.