Skip to content

Commit

Permalink
Pass as reference at callsite
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Oct 31, 2023
1 parent ed475ab commit 2ad2683
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wp-includes/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -1126,7 +1126,7 @@ function traverse_and_serialize_blocks( $blocks, $pre_callback = null, $post_cal

$result .= call_user_func_array(
$pre_callback,
array( &$block, $parent, $prev )
array( &$block, &$parent, $prev )
);
}

Expand All @@ -1137,7 +1137,7 @@ function traverse_and_serialize_blocks( $blocks, $pre_callback = null, $post_cal

$post_markup = call_user_func_array(
$post_callback,
array( &$block, $parent, $next )
array( &$block, &$parent, $next )
);
}

Expand Down

0 comments on commit 2ad2683

Please sign in to comment.