From d5206419d75d9b1c1b958f076267f7eba9c41ce5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Helen=20Hou-Sand=C3=AD?= Date: Tue, 17 Sep 2024 23:50:12 +0000 Subject: [PATCH] Bootstrap/Load: Give more context and warning about editing compat.php. As indicated by name, this is a compatibility file which warrants more care to begin with, but it's still worth warning folks about how narrow function availability is in this file. Props jorbin, dmsnell, helen. See #61694. Built from https://develop.svn.wordpress.org/trunk@59043 git-svn-id: http://core.svn.wordpress.org/trunk@58439 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/compat.php | 5 +++++ wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/wp-includes/compat.php b/wp-includes/compat.php index 030a288d82..531c76fe1b 100644 --- a/wp-includes/compat.php +++ b/wp-includes/compat.php @@ -2,6 +2,11 @@ /** * WordPress implementation for PHP functions either missing from older PHP versions or not included by default. * + * This file is loaded extremely early and the functions can be relied upon by drop-ins. + * Ergo, please ensure you do not rely on external functions when writing code for this file. + * Only use functions built into PHP or are defined in this file and have adequate testing + * and error suppression to ensure the file will run correctly and not break websites. + * * @package PHP * @access private */ diff --git a/wp-includes/version.php b/wp-includes/version.php index 8ab48e593e..2642de4c9a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-59042'; +$wp_version = '6.7-alpha-59043'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.