From e6473a7af412a1a9d06d77e2309c38a1b02cc50a Mon Sep 17 00:00:00 2001 From: Ricardo Artemio Morales Date: Tue, 16 Jan 2024 09:38:59 -0500 Subject: [PATCH] Rename function call and call using string in filter --- lib/experimental/blocks.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/experimental/blocks.php b/lib/experimental/blocks.php index 2558161a0c49a..93b65f95fc61a 100644 --- a/lib/experimental/blocks.php +++ b/lib/experimental/blocks.php @@ -89,7 +89,7 @@ function wp_enqueue_block_view_script( $block_name, $args ) { require_once __DIR__ . '/block-bindings/index.php'; - if ( ! function_exists( 'process_block_bindings' ) ) { + if ( ! function_exists( 'gutenberg_process_block_bindings' ) ) { /** * Process the block bindings attribute. * @@ -97,7 +97,7 @@ function wp_enqueue_block_view_script( $block_name, $args ) { * @param array $block Block attributes. * @param WP_Block $block_instance The block instance. */ - function process_block_bindings( $block_content, $block, $block_instance ) { + function gutenberg_process_block_bindings( $block_content, $block, $block_instance ) { // Allowed blocks that support block bindings. // TODO: Look for a mechanism to opt-in for this. Maybe adding a property to block attributes? @@ -164,5 +164,5 @@ function process_block_bindings( $block_content, $block, $block_instance ) { } } - add_filter( 'render_block', process_block_bindings, 20, 3 ); + add_filter( 'render_block', 'gutenberg_process_block_bindings', 20, 3 ); }