Changeset 59906 for trunk/src/wp-includes/blocks/block.php
- Timestamp:
- 03/03/2025 06:06:16 PM (14 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/blocks/block.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/block.php
r59775 r59906 88 88 } 89 89 90 $ignored_hooked_blocks = get_post_meta( $attributes['ref'], '_wp_ignored_hooked_blocks', true );91 if ( ! empty( $ignored_hooked_blocks ) ) {92 $ignored_hooked_blocks = json_decode( $ignored_hooked_blocks, true );93 $attributes['metadata'] = array(94 'ignoredHookedBlocks' => $ignored_hooked_blocks,95 );96 }97 98 // Wrap in "Block" block so the Block Hooks algorithm can insert blocks99 // that are hooked as first or last child of `core/block`.100 $content = get_comment_delimited_block_content(101 'core/block',102 $attributes,103 $content104 );105 90 // Apply Block Hooks. 106 $content = apply_block_hooks_to_content( $content, $reusable_block ); 107 // Remove block wrapper. 108 $content = remove_serialized_parent_block( $content ); 91 $content = apply_block_hooks_to_content_from_post_object( $content, $reusable_block ); 109 92 110 93 $content = do_blocks( $content );
Note: See TracChangeset
for help on using the changeset viewer.