Changeset 59775 for trunk/src/wp-includes/blocks/block.php
- Timestamp:
- 02/07/2025 03:44:07 PM (12 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
r58275 r59775 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 blocks 99 // that are hooked as first or last child of `core/block`. 100 $content = get_comment_delimited_block_content( 101 'core/block', 102 $attributes, 103 $content 104 ); 105 // Apply Block Hooks. 106 $content = apply_block_hooks_to_content( $content, $reusable_block ); 107 // Remove block wrapper. 108 $content = remove_serialized_parent_block( $content ); 109 90 110 $content = do_blocks( $content ); 91 111 unset( $seen_refs[ $attributes['ref'] ] );
Note: See TracChangeset
for help on using the changeset viewer.