diff --git a/wp-includes/blocks.php b/wp-includes/blocks.php index 9d8f4bfaf9..94c4dfa43a 100644 --- a/wp-includes/blocks.php +++ b/wp-includes/blocks.php @@ -1217,6 +1217,7 @@ function update_ignored_hooked_blocks_postmeta( $post ) { $existing_post = get_post( $post->ID ); // Merge the existing post object with the updated post object to pass to the block hooks algorithm for context. $context = (object) array_merge( (array) $existing_post, (array) $post ); + $context = new WP_Post( $context ); // Convert to WP_Post object. $serialized_block = apply_block_hooks_to_content( $markup, $context, 'set_ignored_hooked_blocks_metadata' ); $root_block = parse_blocks( $serialized_block )[0]; diff --git a/wp-includes/version.php b/wp-includes/version.php index ae68572255..9b5c292d28 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-alpha-59481'; +$wp_version = '6.8-alpha-59482'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.