Skip to content

Commit a0edd93

Browse files
committed
Update after rename
1 parent ea3db1a commit a0edd93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wp-content/themes/twentytwentyone/inc/template-functions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,14 +377,14 @@ function twenty_twenty_one_print_first_instance_of_block( $block_name, $content
377377
while ( $instance_count < $instances && $processor->next_block() ) {
378378
$matched_block_type = $processor->get_printable_block_type();
379379
if ( str_starts_with( $matched_block_type, $prefix ) ) {
380-
$blocks_content .= render_block( $processor->extract_block() );
380+
$blocks_content .= render_block( $processor->extract_full_block_and_advance() );
381381
++$instance_count;
382382
}
383383
}
384384
} else {
385385
// Scan for blocks of the exact block type.
386386
while ( $instance_count < $instances && $processor->next_block( $block_name ) ) {
387-
$blocks_content .= render_block( $processor->extract_block() );
387+
$blocks_content .= render_block( $processor->extract_full_block_and_advance() );
388388
++$instance_count;
389389
}
390390
}

0 commit comments

Comments
 (0)