Changeset 59482 for trunk/src/wp-includes/blocks.php
- Timestamp:
- 12/04/2024 12:05:33 PM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks.php
r59166 r59482 1218 1218 // Merge the existing post object with the updated post object to pass to the block hooks algorithm for context. 1219 1219 $context = (object) array_merge( (array) $existing_post, (array) $post ); 1220 $context = new WP_Post( $context ); // Convert to WP_Post object. 1220 1221 $serialized_block = apply_block_hooks_to_content( $markup, $context, 'set_ignored_hooked_blocks_metadata' ); 1221 1222 $root_block = parse_blocks( $serialized_block )[0];
Note: See TracChangeset
for help on using the changeset viewer.