From 2481f2de2b1173e0a870c293df82ebdfc050b62f Mon Sep 17 00:00:00 2001 From: gziolo Date: Tue, 26 Sep 2023 08:09:16 +0000 Subject: [PATCH] Blocks: Add more unit test covering edge cases for Block Hooks These two new unit tests document how Block Hooks behave with `first_child` and `last_child` relative positions. The hooked blocks will only get inserted in the case where the parent block has at least one child block present. While it seems like a limitation, in practice, it's hard to think of a case where the template would use a parent block without its children. It's more likely to happen with patterns in general, but in the case of patterns wired with the block theme, it also seems unlikely. The reasoning here is that out of the box, the block theme should produce a fully functional and valid HTML. Props ockham. See #59313. Follow-up [56649]. Built from https://develop.svn.wordpress.org/trunk@56701 git-svn-id: http://core.svn.wordpress.org/trunk@56213 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 8301a7d4c2..a6d672e014 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.4-alpha-56700'; +$wp_version = '6.4-alpha-56701'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.