Changeset 57594 for trunk/src/wp-includes/block-template-utils.php
- Timestamp:
- 02/12/2024 01:13:38 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-template-utils.php
r57349 r57594 902 902 } 903 903 904 $hooked_blocks = get_hooked_blocks(); 905 if ( ! empty( $hooked_blocks ) || has_filter( 'hooked_block_types' ) ) { 906 $before_block_visitor = make_before_block_visitor( $hooked_blocks, $template ); 907 $after_block_visitor = make_after_block_visitor( $hooked_blocks, $template ); 908 $blocks = parse_blocks( $template->content ); 909 $template->content = traverse_and_serialize_blocks( $blocks, $before_block_visitor, $after_block_visitor ); 910 } 911 904 912 return $template; 905 913 }
Note: See TracChangeset
for help on using the changeset viewer.