From 2ad26836bd9b06cde767932f1ef0b01552bb18ef Mon Sep 17 00:00:00 2001 From: Bernie Reiter Date: Tue, 31 Oct 2023 17:35:19 +0100 Subject: [PATCH] Pass as reference at callsite --- src/wp-includes/blocks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/blocks.php b/src/wp-includes/blocks.php index 8bfcb0dfca359..7a55a6ba31ae6 100644 --- a/src/wp-includes/blocks.php +++ b/src/wp-includes/blocks.php @@ -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 ) ); } @@ -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 ) ); }