Changeset 58615 for trunk/src/wp-includes/block-template-utils.php
- Timestamp:
- 07/02/2024 10:41:33 AM (23 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/block-template-utils.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-template-utils.php
r58614 r58615 618 618 619 619 if ( 'wp_template_part' === $template->type && $has_hooked_blocks ) { 620 /* *620 /* 621 621 * In order for hooked blocks to be inserted at positions first_child and last_child in a template part, 622 622 * we need to wrap its content a mock template part block and traverse it. … … 1023 1023 $attributes = ! empty( $existing_ignored_hooked_blocks ) ? array( 'metadata' => array( 'ignoredHookedBlocks' => json_decode( $existing_ignored_hooked_blocks, true ) ) ) : array(); 1024 1024 1025 /* *1025 /* 1026 1026 * In order for hooked blocks to be inserted at positions first_child and last_child in a template part, 1027 1027 * we need to wrap its content a mock template part block and traverse it.
Note: See TracChangeset
for help on using the changeset viewer.