Skip to content

Commit cfbff7f

Browse files
committed
wawawawa WPCS so much extra work
1 parent 26aebaa commit cfbff7f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -371,9 +371,9 @@ function twenty_twenty_one_print_first_instance_of_block( $block_name, $content
371371
// Loop over top-level blocks.
372372
if ( class_exists( '\WP_Block_Processor' ) && function_exists( '\str_starts_with' ) ) {
373373
// Scan for blocks whose block type matches the prefix, if provided a wildcard.
374-
$prefix = rtrim( $block_name, '*' );
375-
$match_fully = $prefix === $block_name;
376-
$processor = new WP_Block_Processor( $content );
374+
$prefix = rtrim( $block_name, '*' );
375+
$match_fully = $prefix === $block_name;
376+
$processor = new WP_Block_Processor( $content );
377377

378378
while ( $instances_count < $instances && $processor->next_block() ) {
379379
if ( 1 !== $processor->get_depth() ) {

0 commit comments

Comments
 (0)