Commit b3bcb809b7 for wordpress.org
commit b3bcb809b7e91072fb89ef4dae48ceac73c7488b
Author: desrosj <desrosj@git.wordpress.org>
Date: Fri Nov 6 18:11:55 2026 +0000
Build/Test Tools: Use `spl_object_id()` in `_test_filter_build_unique_id()`.
`spl_object_hash()` has been deprecated in PHP 8.6. `tests_add_filter()` uses this helper to build callback IDs before WordPress is loaded. A deprecation notice is triggered for plugin and theme test suites that register a closure or an object method during bootstrap.
The helper now builds the same IDs as `_wp_filter_build_unique_id()`, which switched to `spl_object_id()` in r62408 and began prefixing object IDs in r63334. The callbacks that run do not change because `WP_Hook::build_preinitialized_hooks()` re-adds every pre-loaded callback with `add_filter()`.
A new test is included to confirm that both functions return the same ID for each type of callback.
Follow-up to r62408, r63334.
Developed in https://github.com/WordPress/wordpress-develop/pull/15625.
Props dhrupo.
Fixes #66512.
Built from https://develop.svn.wordpress.org/trunk@65314
git-svn-id: http://core.svn.wordpress.org/trunk@64454 1a063a9b-81f0-0310-95a4-ce76da25c4cd
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 1ebc4d447b..55ed1e6649 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '7.2-beta4-65313';
+$wp_version = '7.2-beta4-65314';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.