Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Plural
  • Loading branch information
ockham committed Oct 31, 2023
commit 340c72bf3cf0727e75b26e91bd5113a951544ac8
2 changes: 1 addition & 1 deletion src/wp-includes/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,7 @@ function traverse_and_serialize_block( $block, $pre_callback = null, $post_callb
*/
function traverse_and_serialize_blocks( $blocks, $pre_callback = null, $post_callback = null ) {
$result = '';
$parent = null; // At the top level, there is no parent block to pass to the callback; yet the callback expects a reference.
$parent = null; // At the top level, there is no parent block to pass to the callbacks; yet the callbacks expect a reference.
foreach ( $blocks as $index => $block ) {
if ( is_callable( $pre_callback ) ) {
$prev = 0 === $index
Expand Down