Skip to content

Commit

Permalink
Improve wp_interactivity_process_directives_of_interactive_blocks com…
Browse files Browse the repository at this point in the history
…ment
  • Loading branch information
luisherranz committed Jan 24, 2024
1 parent 93eefeb commit 1954f45
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/compat/wordpress-6.5/interactivity-api/interactivity-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
/**
* Processes the directives on the rendered HTML of the interactive blocks.
*
* It only processes one root interactive block at a time because the rendered
* HTML of that block contains the rendered HTML of all its inner blocks,
* including any interactive block. It does so by ignoring all the interactive
* inner blocks until the root interactive block is processed.
* This processes only one root interactive block at a time because the
* rendered HTML of that block contains the rendered HTML of all its inner
* blocks, including any interactive block. It does so by ignoring all the
* interactive inner blocks until the root interactive block is processed.
*
* @since 6.5.0
*
Expand All @@ -24,8 +24,8 @@ function wp_interactivity_process_directives_of_interactive_blocks( $parsed_bloc
static $root_interactive_block = null;

/*
* Checks whether a root interactive block is already annotated for
* processing, and if it is, it ignores the subsequent ones.
* Checks whether a root interactive block is already annotated for
* processing, and if it is, it ignores the subsequent ones.
*/
if ( null === $root_interactive_block ) {
$block_name = $parsed_block['blockName'];
Expand Down

0 comments on commit 1954f45

Please sign in to comment.