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 ); } }