From e015455cf89565bd87b3d69610c7e8dc439ee31d Mon Sep 17 00:00:00 2001 From: Anmol Verma <77019763+AnmolVerma404@users.noreply.github.com> Date: Wed, 16 Oct 2024 18:40:49 +0530 Subject: [PATCH] Return result from register_block_template in wp_register_block_template function (#66102) Co-authored-by: AnmolVerma404 Co-authored-by: Aljullu Co-authored-by: kevin940726 --- 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 65d99ee978efe..acbd0b4981fe2 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 ); } }