Changeset 56960 for trunk/src/wp-includes/block-template-utils.php
- Timestamp:
- 10/17/2023 03:46:44 PM (2 years 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
r56943 r56960 548 548 } 549 549 550 $before_block_visitor = ( defined( 'REST_REQUEST' ) && REST_REQUEST ) ? '_inject_theme_attribute_in_template_part_block' : null;550 $before_block_visitor = '_inject_theme_attribute_in_template_part_block'; 551 551 $after_block_visitor = null; 552 552 $hooked_blocks = get_hooked_blocks(); … … 555 555 $after_block_visitor = make_after_block_visitor( $hooked_blocks, $template ); 556 556 } 557 if ( null !== $before_block_visitor || null !== $after_block_visitor ) { 558 $blocks = parse_blocks( $template_content ); 559 $template_content = traverse_and_serialize_blocks( $blocks, $before_block_visitor, $after_block_visitor ); 560 } 561 $template->content = $template_content; 557 $blocks = parse_blocks( $template_content ); 558 $template->content = traverse_and_serialize_blocks( $blocks, $before_block_visitor, $after_block_visitor ); 562 559 563 560 return $template;
Note: See TracChangeset
for help on using the changeset viewer.