From 4c2edeb04a05a9fb0623da90b7d85262b8f17c91 Mon Sep 17 00:00:00 2001 From: hellofromTonya Date: Tue, 16 Jul 2024 18:22:18 +0000 Subject: [PATCH] Tests: Don't declare nested named function in Tests_Interactivity_API_wpInteractivityAPIFunctions. Once the `test_process_directives_when_block_is_filtered()` method has run, the named `test_render_block_data()` function declared nested within becomes part of the global namespace, which could cause problems for other tests. Quite apart from the fact that the name starting with `test_` is confusing (as methods prefixed with `test_` are supposed to be test methods to be run by PHPUnit). Using a closure for this callback fixes the issue. Declared as `static` for a micro-optimization. Follow-up to [57826]. Props jrf, hellofromTonya. See #61530. Built from https://develop.svn.wordpress.org/trunk@58738 git-svn-id: http://core.svn.wordpress.org/trunk@58140 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/version.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index 998a829501..af2fceed4d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-58734'; +$wp_version = '6.7-alpha-58738'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.