From 771a6c72fa90cb82703426aa7499349e46c80678 Mon Sep 17 00:00:00 2001 From: anmolverma404 Date: Mon, 14 Oct 2024 17:42:34 +0530 Subject: [PATCH] Return result from register_block_template in wp_register_block_template function --- lib/compat/wordpress-6.7/block-templates.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compat/wordpress-6.7/block-templates.php b/lib/compat/wordpress-6.7/block-templates.php index 65d99ee978efed..acbd0b4981fe29 100644 --- a/lib/compat/wordpress-6.7/block-templates.php +++ b/lib/compat/wordpress-6.7/block-templates.php @@ -63,7 +63,7 @@ function unregister_block_template( $template_name ) { */ function wp_register_block_template( $template_name, $args = array() ) { _deprecated_function( __FUNCTION__, 'Gutenberg 19.4.0', 'register_block_template' ); - register_block_template( $template_name, $args ); + return register_block_template( $template_name, $args ); } }