Skip to content

Commit eae6bbc

Browse files
committed
Fixup: 2021
1 parent 2a328ce commit eae6bbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ function twenty_twenty_one_print_first_instance_of_block( $block_name, $content
374374
// Scan for blocks whose block type matches the prefix.
375375
$prefix = rtrim( $block_name, '*' );
376376

377-
while ( $instance_count < $instances && $processor->next_block( '*' ) ) {
377+
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 ) ) {
380380
$blocks_content .= render_block( $processor->extract_block() );

0 commit comments

Comments
 (0)